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.

Martin

_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to