[zeromq-dev] JZMQ Clarification: ZContext destroySocket setLinger

Trevor Bernard trevor.bernard at gmail.com
Mon Jan 21 21:37:04 CET 2013


On the following line:
https://github.com/zeromq/jzmq/blob/master/src/org/zeromq/ZContext.java#L109

Should setLinger be set to 0 to immediately purge pending messages on
the socket upon close? Or is the currently functionality correct?

Also in the same method, shouldn't the close and remove be wrapped in
a finally block?
https://github.com/zeromq/jzmq/blob/master/src/org/zeromq/ZContext.java#L115

https://github.com/zeromq/jzmq/issues/149



More information about the zeromq-dev mailing list