mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Problem: zmq::signaler_t::send may loop forever
Solution: restore the wsa_assert statement previously removed.
This commit is contained in:
parent
bcf75777c8
commit
9624f9ade7
@ -189,6 +189,7 @@ void zmq::signaler_t::send ()
|
||||
unsigned char dummy = 0;
|
||||
while (true) {
|
||||
int nbytes = ::send (w, (char*) &dummy, sizeof (dummy), 0);
|
||||
wsa_assert (nbytes != SOCKET_ERROR);
|
||||
if (unlikely (nbytes == SOCKET_ERROR))
|
||||
continue;
|
||||
zmq_assert (nbytes == sizeof (dummy));
|
||||
|
Loading…
x
Reference in New Issue
Block a user