Skip to content

Commit 3755e6e

Browse files
author
Mike Naquin
committed
Check for EPIPE error on UNIX systems in SocketImpl::error
1 parent 531a963 commit 3755e6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Net/src/SocketImpl.cpp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,10 @@ void SocketImpl::error(int code, const std::string& arg)
10781078
throw NetException("Host is down", arg, code);
10791079
case POCO_EHOSTUNREACH:
10801080
throw NetException("No route to host", arg, code);
1081+
#if defined(POCO_OS_FAMILY_UNIX)
1082+
case EPIPE:
1083+
throw IOException("Broken pipe", code);
1084+
#endif
10811085
default:
10821086
throw IOException(NumberFormatter::format(code), arg, code);
10831087
}

0 commit comments

Comments
 (0)