>From fc17bd4117c19b027790951ac1df1a141bce9d82 Mon Sep 17 00:00:00 2001 From: Martin Sustrik <[email protected]> Date: Tue, 22 Nov 2011 14:48:35 +0100 Subject: [PATCH] ENOTCONN on recv() on TCP socket is treated decently (issue 254)
Signed-off-by: Martin Sustrik <[email protected]> --- src/stream_engine.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index 11ec264..ab6329a 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -360,7 +360,7 @@ int zmq::stream_engine_t::read (void *data_, size_t size_) // Signalise peer failure. if (nbytes == -1 && (errno == ECONNRESET || errno == ECONNREFUSED || - errno == ETIMEDOUT || errno == EHOSTUNREACH)) + errno == ETIMEDOUT || errno == EHOSTUNREACH || errno == ENOTCONN)) return -1; errno_assert (nbytes != -1); -- 1.7.0.4
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
