Skip to content

Commit

Permalink
remove it from the thread queue, too
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 3, 2017
1 parent 990b92d commit 5018caa
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/modules/rlm_radius/rlm_radius_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ static void mod_finished_request(rlm_radius_udp_connection_t *c, rlm_radius_udp_
rad_assert(c->num_requests > 0);
c->num_requests--;
conn_idle(c);
} else {
(void) fr_heap_extract(u->thread->queued, u);
}

u->rr = NULL;
Expand Down Expand Up @@ -619,12 +621,6 @@ static void conn_read(fr_event_list_t *el, int fd, UNUSED int flags, void *uctx)
*/
gettimeofday(&c->last_reply, NULL);

/*
* Stop all retransmissions for this packet.
*/
if (u->timer.ev) (void) fr_event_timer_delete(c->thread->el, &u->timer.ev);
(void) fr_heap_extract(c->queued, u);

switch (c->state) {
default:
rad_assert(0 == 1);
Expand Down

0 comments on commit 5018caa

Please sign in to comment.