Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2360 from nexcvon/patch-2
Problem: Assertion failed in zmq::signaler_t::send
- Loading branch information
34be53d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
short question: if send starts to report errors, will this not lead into an endless loop?
34be53d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what SOCKET_ERROR means on Windows, I assumed it was the same as EINTR on *nix from the commit message
@nexcvon any comment?
34be53d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SOCKET_ERROR
on Windows is not the same asEINTR
on *nix. Thewsa_assert
statement should be retained. I sent another PR #2362 to fix this.On Windows, when error happens,
send()
returnsSOCKET_ERROR
, andWSAGetLastError()
should be called to get the error code.In this problem:
send()
returnsSOCKET_ERROR
WSAGetLastError()
returnsWSAEWOULDBLOCK
zmq_assert
fails.