summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-07-31 07:06:17 +0000
committerMichi Henning <michi@zeroc.com>2003-07-31 07:06:17 +0000
commitceff6e8189e995c7e39dc0c7a3e545c6becab0e4 (patch)
treeab1c40250c58f443c57364b327d5ac2bbd2cc02c /cpp/src/Ice/Network.cpp
parentRemoved a statemant near the beginning of read(): stream.i += 8; (diff)
downloadice-ceff6e8189e995c7e39dc0c7a3e545c6becab0e4.tar.bz2
ice-ceff6e8189e995c7e39dc0c7a3e545c6becab0e4.tar.xz
ice-ceff6e8189e995c7e39dc0c7a3e545c6becab0e4.zip
Added EPIPE to the list of errors for lost connections. EPIPE is returned
if client and server run on the same machine and the connection is closed. (For same-machine comms, sockets often are implemented with a UNIX pipe internally.)
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index e741c5e5c64..0f62100639d 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -118,7 +118,8 @@ IceInternal::connectionLost()
#else
return errno == ECONNRESET ||
errno == ESHUTDOWN ||
- errno == ECONNABORTED;
+ errno == ECONNABORTED ||
+ errno == EPIPE;
#endif
}