[zeromq-dev] Polling on a REQUEST socket

Diablo 666 thediablo666 at hotmail.de
Mon Apr 12 14:46:00 CEST 2010


Hi.

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.

Best regards,
Andreas



PS: Sorry for not replying to the last problem earlier, I'm very short in
time at the moment.
 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1004xWin72
Windows 7 - Alles was Du brauchst und noch viel mehr!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100412/1fa0b489/attachment.html>


More information about the zeromq-dev mailing list