mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
Check for EPIPE error on UNIX systems in SocketImpl::error
This commit is contained in:
parent
531a9630a1
commit
3755e6e422
@ -1078,6 +1078,10 @@ void SocketImpl::error(int code, const std::string& arg)
|
||||
throw NetException("Host is down", arg, code);
|
||||
case POCO_EHOSTUNREACH:
|
||||
throw NetException("No route to host", arg, code);
|
||||
#if defined(POCO_OS_FAMILY_UNIX)
|
||||
case EPIPE:
|
||||
throw IOException("Broken pipe", code);
|
||||
#endif
|
||||
default:
|
||||
throw IOException(NumberFormatter::format(code), arg, code);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user