Commit fa598579 authored by Nathan Toone's avatar Nathan Toone

Problem: Assert being triggered when Windows returns `WSAENOBUFS` from `recv`…

Problem: Assert being triggered when Windows returns `WSAENOBUFS` from `recv` call on large buffers.

Solution: Expect `WSAENOBUFS` as a valid response.  See https://github.com/zeromq/libzmq/issues/3263
parent eb74b726
...@@ -284,7 +284,7 @@ int zmq::tcp_read (fd_t s_, void *data_, size_t size_) ...@@ -284,7 +284,7 @@ int zmq::tcp_read (fd_t s_, void *data_, size_t size_)
last_error == WSAENETDOWN || last_error == WSAENETRESET last_error == WSAENETDOWN || last_error == WSAENETRESET
|| last_error == WSAECONNABORTED || last_error == WSAETIMEDOUT || last_error == WSAECONNABORTED || last_error == WSAETIMEDOUT
|| last_error == WSAECONNRESET || last_error == WSAECONNREFUSED || last_error == WSAECONNRESET || last_error == WSAECONNREFUSED
|| last_error == WSAENOTCONN); || last_error == WSAENOTCONN || last_error == WSAENOBUFS);
errno = wsa_error_to_errno (last_error); errno = wsa_error_to_errno (last_error);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment