On Sun, Jan 22, 2012 at 02:39, Rob Fowler <[email protected]> wrote: > On 22/01/2012 1:37 PM, john skaller wrote: >> On 22/01/2012, at 11:32 AM, Martin Sustrik wrote: >> >>> On 21/01/12 23:34, john skaller wrote: >>>> Which ops in 0MQ can block? >>>> >>>> I know these can block: >>>> >>>> send/recv/send_msg/recv_msg >>>> close >>>> term >>> These are blocking: send, sendmsg, recv, recvmsg, poll, term. >>> >>> Note that zmq_close() is never blocking. >> Ah, ok. Thanks. >> > If I use python and zmq close(linger=False) it will block
Under what circumstances does this block? Can you provide a simple case? pyzmq's behavior shouldn't differ from libzmq, because all it does is set linger (if requested) and call zmq_close, with a bit of bookkeeping and error handling. > > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
