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
…tested against via if (ret < 0)). On Windows, Win32 API docs ask to check against SOCKET_ERROR and/or INVALID_SOCKET values, depending on API call in question. Fix bad error checks against value of zero and instead use checks that reflect the best practices on both platforms. Fixesemscripten-core#16897.
juj
linked a pull request
May 10, 2022
that will
close
this issue
…tested against via if (ret < 0)). On Windows, Win32 API docs ask to check against SOCKET_ERROR and/or INVALID_SOCKET values, depending on API call in question. Fix bad error checks against value of zero and instead use checks that reflect the best practices on both platforms. Fixesemscripten-core#16897.
The return code from sendto() and recvfrom() is the number of bytes sent or -1 for an error so the check for an error here should be ret<0, not ret!=0
emscripten/tools/websocket_to_posix_proxy/src/websocket_to_posix_proxy.c
Line 1217 in 8373cfa
emscripten/tools/websocket_to_posix_proxy/src/websocket_to_posix_proxy.c
Line 1259 in 8373cfa
The text was updated successfully, but these errors were encountered: