DEGRADED/DOWN paths are useless server side
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
3
mud.c
3
mud.c
@@ -1467,7 +1467,8 @@ mud_update(struct mud *mud, uint64_t now)
|
|||||||
if ((path->msg_sent >= MUD_MSG_SENT_MAX) ||
|
if ((path->msg_sent >= MUD_MSG_SENT_MAX) ||
|
||||||
(path->recv.time &&
|
(path->recv.time &&
|
||||||
mud->last_recv_time > path->recv.time + MUD_ONE_SEC)) {
|
mud->last_recv_time > path->recv.time + MUD_ONE_SEC)) {
|
||||||
mud_reset_path(mud, path);
|
path->state = MUD_EMPTY;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user