format of subscriptions changed (no * needed anymore)

This commit is contained in:
Martin Sustrik
2009-12-28 21:29:31 +01:00
parent c97967ed4b
commit 72161fb075
4 changed files with 51 additions and 66 deletions

View File

@@ -326,17 +326,20 @@ int zmq::socket_base_t::recv (::zmq_msg_t *msg_, int flags_)
if (errno != EAGAIN)
return -1;
app_thread->process_commands (false, false);
ticks = 0;
rc = xrecv (msg_, flags_);
ticks = 0;
}
else {
while (rc != 0) {
if (errno != EAGAIN)
if (errno == EINPROGRESS)
app_thread->process_commands (false, true);
else if (errno == EAGAIN)
app_thread->process_commands (true, false);
else
return -1;
app_thread->process_commands (true, false);
ticks = 0;
rc = xrecv (msg_, flags_);
}
ticks = 0;
}