Open david-boles opened 1 year ago
I ran into this problem too. After some digging in ZMQ docs, I think this is expected behavior (though it doesn't seem to be enforced in all languages).
http://api.zeromq.org/2-1:zmq-setsockopt
You'll have to set ZMQ_LINGER
to something other than the default -1 for it to drop.
I don't think this is really a sensible default value, but it's at the libzmq api level, not at the rust binding implementation level.
Tested on zmq 0.10.0, Ubuntu 20.04 and 22.04.
Example:
Stacktrace:
Let me know if there's anything else I can provide!