]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
reset timer on dup
authorAlan T. DeKok <aland@freeradius.org>
Wed, 2 Sep 2020 17:25:25 +0000 (13:25 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 2 Sep 2020 17:25:25 +0000 (13:25 -0400)
it will be set again in mod_write()

src/lib/io/master.c

index 223f295e261f18225c3f5d2bb3226cf7dc23e7b3..82c37648aebd9e6c406627fe3155feb2ecdb91f3 100644 (file)
@@ -935,6 +935,14 @@ static fr_io_track_t *fr_io_track_add(fr_io_client_t *client,
                *is_dup = true;
                old->packets++;
                talloc_free(track);
+
+               /*
+                *      Retransmits can sit in the outbound queue for
+                *      a while.  We don't want to time out this
+                *      struct while the packet is in the outbound
+                *      queue.
+                */
+               if (old->ev) (void) fr_event_timer_delete(&old->ev);
                return old;
        }