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.
I will try to send this bug to rtklibexplorer, but I am not sure that they will accept my patch.
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.
I will try to send this bug to rtklibexplorer, but I am not sure that they will accept my patch.
recv_nb.patch
The text was updated successfully, but these errors were encountered: