mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
Fix bug in reporting protocol errors
This commit is contained in:
@@ -306,7 +306,7 @@ void zmq::stream_engine_t::in_event ()
|
|||||||
// or the session has rejected the message.
|
// or the session has rejected the message.
|
||||||
if (rc == -1) {
|
if (rc == -1) {
|
||||||
if (errno != EAGAIN) {
|
if (errno != EAGAIN) {
|
||||||
error (connection_error);
|
error (protocol_error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
input_stopped = true;
|
input_stopped = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user