Alex Villacís Lasso 2895bb8b84 Check for readable socket right before signaling a read timeout
In the current architecture, all socket reads proceed before all socket
polls, and the socket poll is where the read timeout check is made. If
the sum of the execution time of all write and read handlers exceeds
that of the next timeout-enabled polled socket, the code would
incorrectly close due to a "timeout", even if some readable data became
available in the meantime. Fix by checking (via select()) one last time
and resetting the timer if the socket has some readable data.
2021-09-07 14:06:12 -05:00
2020-12-21 12:59:04 -05:00
2020-12-21 12:59:04 -05:00
Description
No description provided
95 KiB
Languages
C++ 100%