summaryrefslogtreecommitdiff
path: root/src/tcp_socket.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-09-04 09:51:42 +0200
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-09-04 09:51:42 +0200
commit103cbee6a509e55ff5def82eb5ec3ef7feb319a3 (patch)
treea770050db89a3e018474cc32b4f28d4f806e72e9 /src/tcp_socket.cpp
parent4914e5c9d192ac6763e5da6fa28ea503ee769bf0 (diff)
couple of bugs fixed
Diffstat (limited to 'src/tcp_socket.cpp')
-rw-r--r--src/tcp_socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_socket.cpp b/src/tcp_socket.cpp
index 1eb338f..4472fa6 100644
--- a/src/tcp_socket.cpp
+++ b/src/tcp_socket.cpp
@@ -81,7 +81,7 @@ int zmq::tcp_socket_t::write (const void *data, int size)
return 0;
// Signalise peer failure.
- if (nbytes == -1 && errno == ECONNRESET)
+ if (nbytes == -1 && (errno == ECONNRESET || errno == EPIPE))
return -1;
errno_assert (nbytes != -1);