From 067ba3b9f77a253d4ce58e05ef1fa7702c32b2a3 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 13 Jan 2010 19:21:23 +0100 Subject: ZMQII-34: ensure that poll won't return POLLIN event when the message will be filtered out anyway (POSIX) --- src/socket_base.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/socket_base.cpp') diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 3e6488d..ad68fdb 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -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; -- cgit v1.2.3