diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index 778cdc28..4c521dea 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -306,7 +306,7 @@ void zmq::stream_engine_t::in_event () // or the session has rejected the message. if (rc == -1) { if (errno != EAGAIN) { - error (connection_error); + error (protocol_error); return; } input_stopped = true;