zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.79k stars 2.36k forks source link

cleanly disconnect without losing messages #1813

Open jkarneges opened 8 years ago

jkarneges commented 8 years ago

Just a feature request. It would be nice if restarting a process wouldn't lose messages left inside TCP buffers. I'm not sure of the best way to handle this, but here's a proposal:

Note that this is not a reliability mechanism, and there are no retransmissions or anything like that. It's simply a clean closing mechanism to ensure messages in transit aren't dropped unnecessarily.

pthreadself commented 7 years ago

request + 1