summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-04 07:08:32 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-04 07:08:32 +0200
commit52b8a917deb2990e7197b82e81e0258ebe30f424 (patch)
tree0041b58dd714822a8e5e7782466e1fb551f3fd1c /src
parent7cfd1c58ba244ee0185043c3dac0617bd7a7b938 (diff)
Accept ECONNRESET from close()
Although not a POSIX behaviour, FreeBSD can fail with ECONNRESET. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src')
-rw-r--r--src/stream_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp
index 46d5a52..d9125d0 100644
--- a/src/stream_engine.cpp
+++ b/src/stream_engine.cpp
@@ -97,7 +97,7 @@ xs::stream_engine_t::~stream_engine_t ()
wsa_assert (rc != SOCKET_ERROR);
#else
int rc = close (s);
- errno_assert (rc == 0);
+ errno_assert (rc == 0 || errno == ECONNRESET);
#endif
s = retired_fd;
}