[zeromq-dev] Windows bug fix
Robin Weisberg
robin at scout-trading.com
Tue Sep 15 23:34:57 CEST 2009
We encountered an issue where a windows app would crash if we were sending
messages when a listener was down and had never come up. We got an assert in
tcp_socket.cpp on line 163.
wsa_assert (nbytes != SOCKET_ERROR);
The error being returned from WSAGetLastError () was 10053
(WSAECONNABORTED).
Not sure if this is the correct change but changing the code above the
assert to include this error code seemed to make the problem go away.
E.g.
if (nbytes == -1 && (
WSAGetLastError () == WSAECONNRESET ||
WSAGetLastError () == WSAECONNREFUSED ||
WSAGetLastError () == WSAECONNABORTED ||
WSAGetLastError () == WSAENOTCONN))
return -1;
Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090915/0efcdb11/attachment.htm>
More information about the zeromq-dev
mailing list