Skip to content

Commit 791c947

Browse files
committed
Replies that come in during a zombie period mean a home server is alive
1 parent a41aa38 commit 791c947

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • src/modules/rlm_radius

src/modules/rlm_radius/bio.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,15 @@ static void request_demux(UNUSED fr_event_list_t *el, trunk_connection_t *tconn,
21112111
u = talloc_get_type_abort(treq->rctx, bio_request_t);
21122112
fr_assert(u == treq->preq);
21132113

2114+
/*
2115+
* If we got a reply during the zombie period mark the
2116+
* connection as active and remove the timer.
2117+
*/
2118+
if (unlikely(fr_timer_armed(h->zombie_ev))) {
2119+
trunk_connection_signal_active(tconn);
2120+
fr_timer_delete(&h->zombie_ev);
2121+
}
2122+
21142123
/*
21152124
* Decode the incoming packet.
21162125
*/

0 commit comments

Comments
 (0)