[zeromq-dev] Polling on a REQUEST socket
thediablo666 at hotmail.de
Mon Apr 12 14:46:00 CEST 2010
I'm trying to implement the following client-server-scenario:
The client opens two sockets (one REQUEST and one REPLY socket).
Then, it connects the REQUEST socket to the server's REPLY socket
and sends a register message. Afterwards it should wait for the server's
reply. To deal with crashing servers, I used zmq_poll() with a 5 seconds
timeout. The problem now is that the zmq_poll() immediately returns
with return code 0 (timeout occured) and no errno is set.
If I use -1 as timeout instead, everthing runs fine. If I use a sleep(1)
before the poll, everything is okay, too.
The REPLY socket has no problem with the zmq_poll() function. It
behaves exactly as it should do.
PS: Sorry for not replying to the last problem earlier, I'm very short in
time at the moment.
Windows 7 - Alles was Du brauchst und noch viel mehr!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the zeromq-dev