You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in recv_nb procedure. This procedure does select and recv and returns one of three options:
ret>0 - n bytes received
ret<0 - error
ret==0 - nothing received
The arrival of FIN (disconnect) is encoded as a return of -1 with errno==0. However, if errno!=0 before the call, it is not cleared when executing recv_nb. And then the situation is treated as an error, not as a disconnect. If errno was EGAIN, then the disconnect is not detected at all.
Error in recv_nb procedure. This procedure does select and recv and returns one of three options:
ret>0 - n bytes received
ret<0 - error
ret==0 - nothing received
The arrival of FIN (disconnect) is encoded as a return of -1 with errno==0. However, if errno!=0 before the call, it is not cleared when executing recv_nb. And then the situation is treated as an error, not as a disconnect. If errno was EGAIN, then the disconnect is not detected at all.
recv_nb.patch
The text was updated successfully, but these errors were encountered: