mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-03 12:58:03 +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);
|
throw NetException("Host is down", arg, code);
|
||||||
case POCO_EHOSTUNREACH:
|
case POCO_EHOSTUNREACH:
|
||||||
throw NetException("No route to host", arg, code);
|
throw NetException("No route to host", arg, code);
|
||||||
|
#if defined(POCO_OS_FAMILY_UNIX)
|
||||||
|
case EPIPE:
|
||||||
|
throw IOException("Broken pipe", code);
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
throw IOException(NumberFormatter::format(code), arg, code);
|
throw IOException(NumberFormatter::format(code), arg, code);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user