From: Alan T. DeKok Date: Wed, 2 Sep 2020 17:25:25 +0000 (-0400) Subject: reset timer on dup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83f7f8be31f91d7c08cde4e2bbe9de7f94d6bb42;p=thirdparty%2Ffreeradius-server.git reset timer on dup it will be set again in mod_write() --- diff --git a/src/lib/io/master.c b/src/lib/io/master.c index 223f295e261..82c37648aeb 100644 --- a/src/lib/io/master.c +++ b/src/lib/io/master.c @@ -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; }