mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-06 21:56:25 +01:00
ZMQII-34: ensure that poll won't return POLLIN event when the message will be filtered out anyway (POSIX)
This commit is contained in:
@@ -331,9 +331,7 @@ int zmq::socket_base_t::recv (::zmq_msg_t *msg_, int flags_)
|
||||
}
|
||||
else {
|
||||
while (rc != 0) {
|
||||
if (errno == EINPROGRESS)
|
||||
app_thread->process_commands (false, true);
|
||||
else if (errno == EAGAIN)
|
||||
if (errno == EAGAIN)
|
||||
app_thread->process_commands (true, false);
|
||||
else
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user