[zeromq-dev] send with ZMQ_NOBLOCK

Chuck Remes cremes.devlist at mac.com
Tue May 18 17:26:16 CEST 2010


I have a question about zmq_msg_t managment when using send with the ZMQ_NOBLOCK flag.

If the send fails, is it proper to call zmq_msg_close on the current zmq_msg_t?

With the ruby bindings, I don't call zmq_msg_close until the message goes out of scope and the garbage collector collects it. Am I waiting too long? Should I be calling it immediately after every send attempt whether or not the send is successful?

cr




More information about the zeromq-dev mailing list