One sec failover

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-02-15 19:29:00 +00:00
parent cef20db3c7
commit bf75ac9cd9

3
mud.c
View File

@@ -1446,7 +1446,8 @@ mud_update(struct mud *mud, uint64_t now)
continue;
if (path->ok) {
if (path->msg_sent >= MUD_MSG_SENT_MAX) {
if (path->msg_sent >= MUD_MSG_SENT_MAX || (path->recv.time &&
mud->last_recv_time > path->recv.time + MUD_ONE_SEC)) {
mud_reset_path(mud, path);
} else {
if (!mtu || mtu > path->mtu.ok)