diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-04-04 07:08:32 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-04-04 07:08:32 +0200 |
commit | 52b8a917deb2990e7197b82e81e0258ebe30f424 (patch) | |
tree | 0041b58dd714822a8e5e7782466e1fb551f3fd1c /src | |
parent | 7cfd1c58ba244ee0185043c3dac0617bd7a7b938 (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.cpp | 2 |
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; } |