diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index ab6329a6..1771990b 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -308,7 +308,8 @@ int zmq::stream_engine_t::write (const void *data_, size_t size_) return 0; // Signalise peer failure. - if (nbytes == -1 && (errno == ECONNRESET || errno == EPIPE)) + if (nbytes == -1 && (errno == ECONNRESET || errno == EPIPE || + errno == ETIMEDOUT)) return -1; errno_assert (nbytes != -1);