mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
problem: terminating conn doesn't make sense in disconnected protocol
This commit is contained in:
parent
8cd64b76e4
commit
d791932635
@ -116,18 +116,6 @@ int zmq::dgram_t::xsend (msg_t *msg_)
|
|||||||
more_out = false;
|
more_out = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close the remote connection if user has asked to do so
|
|
||||||
// by sending zero length message.
|
|
||||||
// Pending messages in the pipe will be dropped (on receiving term- ack)
|
|
||||||
if (msg_->size () == 0) {
|
|
||||||
pipe->terminate (false);
|
|
||||||
int rc = msg_->close ();
|
|
||||||
errno_assert (rc == 0);
|
|
||||||
rc = msg_->init ();
|
|
||||||
errno_assert (rc == 0);
|
|
||||||
pipe = NULL;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
// Push the message into the pipe.
|
// Push the message into the pipe.
|
||||||
if (!pipe->write (msg_)) {
|
if (!pipe->write (msg_)) {
|
||||||
errno = EAGAIN;
|
errno = EAGAIN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user