ZMQII-34: ensure that poll won't return POLLIN event when the message will be filtered out anyway (POSIX)

This commit is contained in:
Martin Sustrik
2010-01-13 19:21:23 +01:00
parent 06105d1642
commit 067ba3b9f7
4 changed files with 110 additions and 46 deletions

View File

@@ -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;