Commit 9624f9ad authored by nexcvon's avatar nexcvon Committed by GitHub

Problem: zmq::signaler_t::send may loop forever

Solution: restore the wsa_assert statement previously removed.
parent bcf75777
......@@ -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));
......
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