summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stream_engine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp
index d9125d0..ed03f59 100644
--- a/src/stream_engine.cpp
+++ b/src/stream_engine.cpp
@@ -315,7 +315,8 @@ int xs::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);