Use also path->rtt to compute tx timeout

This commit is contained in:
angt
2016-03-30 14:34:36 +00:00
parent 1b58401095
commit 6b3001e6d8

2
mud.c
View File

@@ -843,7 +843,7 @@ int mud_push (struct mud *mud)
uint64_t now = mud_now(mud);
if ((path->send.time > path->recv.time) &&
(path->send.time-path->recv.time > UINT64_C(200000)))
(path->send.time-path->recv.time > UINT64_C(200000)+path->rtt*4))
path->up = 0;
if (path->send.time &&