[zeromq-dev] Server freezes when there's no response

lawillas4ever at yahoo.com lawillas4ever at yahoo.com
Wed Nov 2 12:49:36 CET 2011

Yes I already figured that out thank you
------Original Message------
From: Martin Sustrik
To: lanre lawal
To: ZeroMQ development list
Subject: Re: [zeromq-dev] Server freezes when there's no response
Sent: Nov 2, 2011 8:34 AM

On 11/02/2011 03:23 AM, lanre lawal wrote:
> I noticed every time I load a page that's making a request to an
> address, the server seems to freeze whenever there is no response/data
> from the address. Is this a bug or am I doing something wrong here?
> here's my code:
> |     ZMQ.Context context = new ZMQ.Context(1);
>      ZMQ.Socket socket = context.Socket(ZMQ.SocketType.DEALER);
>      socket.Connect("address_goes_here");
>      socket.Recv();

If there's no message to receive, recv() call blocks and waits for a 
message. If you want a nanblocking recv() use ZMQ_NOBLOCK flag.


Sent from my BlackBerry® wireless handheld from Glo Mobile.

More information about the zeromq-dev mailing list