mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-16 18:56:55 +02:00
Problem: zmq::signaler_t::send may loop forever
Solution: restore the wsa_assert statement previously removed.
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user