Commit f6330f3d authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #307 from mkoppanen/master

Handle ETIMEDOUT
parents 3cd0b1b6 70cf2d41
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment