Permalink
Browse files

ENOTCONN on recv() on TCP socket is treated decently (issue 254)

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information...
sustrik committed Nov 22, 2011
1 parent daac9ac commit fc17bd4117c19b027790951ac1df1a141bce9d82
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/stream_engine.cpp
View
@@ -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);

0 comments on commit fc17bd4

Please sign in to comment.