mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
MHD_upgraded_send(): do not retry with sending if timeout is precisely expired
This commit is contained in:
@@ -392,7 +392,8 @@ MHD_upgraded_send (struct MHD_UpgradeHandle *MHD_RESTRICT urh,
|
||||
else
|
||||
{
|
||||
wait_left = finish_time - cur_time;
|
||||
if (wait_left > cur_time - finish_time)
|
||||
if ((wait_left > cur_time - finish_time) ||
|
||||
(0 == wait_left))
|
||||
return MHD_SC_UPGRADED_NET_TIMEOUT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user