[zeromq-dev] Bug? In Windows, recv returns 0 in non-blocking mode even though there's no message?

Martin Sustrik sustrik at 250bpm.com
Mon Aug 30 09:12:30 CEST 2010


Naveen,

> So I'm tryna run a non-blocking reply server. recv() returns 0 despite
> no incoming message.
>
> int x = 1;
> x = socket.recv (&request, ZMQ_NOBLOCK);
>
> if(x==0){
>         printf("recv did return 0!\n");  //this happens every time,
> despite no message
> }
>
> Bug?
> Workaround?
> Real or not?

If you want people to comment, post a simple test program that shows the 
behaviour. The above is not very helpful.

Martin



More information about the zeromq-dev mailing list