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

Naveen Chawla naveen.chwl at gmail.com
Mon Aug 30 00:31:55 CEST 2010


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?

All my thanks,
Nav



More information about the zeromq-dev mailing list