mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
Revert the early dropping of request and replies for disconnected clients
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
9227c38933
commit
4b832ea374
@ -35,9 +35,11 @@ zmq::xrep_t::xrep_t (class ctx_t *parent_, uint32_t tid_) :
|
||||
{
|
||||
options.type = ZMQ_XREP;
|
||||
|
||||
// TODO: Uncomment the following line when XREP will become true XREP
|
||||
// rather than generic router socket.
|
||||
// If peer disconnect there's noone to send reply to anyway. We can drop
|
||||
// all the outstanding requests from that peer.
|
||||
options.delay_on_disconnect = false;
|
||||
// options.delay_on_disconnect = false;
|
||||
|
||||
prefetched_msg.init ();
|
||||
}
|
||||
|
@ -27,9 +27,11 @@ zmq::xreq_t::xreq_t (class ctx_t *parent_, uint32_t tid_) :
|
||||
{
|
||||
options.type = ZMQ_XREQ;
|
||||
|
||||
// TODO: Uncomment the following line when XREQ will become true XREQ
|
||||
// rather than generic dealer socket.
|
||||
// If the socket is closing we can drop all the outbound requests. There'll
|
||||
// be noone to receive the replies anyway.
|
||||
options.delay_on_close = false;
|
||||
// options.delay_on_close = false;
|
||||
}
|
||||
|
||||
zmq::xreq_t::~xreq_t ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user