Check for EPIPE error on UNIX systems in SocketImpl::error

This commit is contained in:
Mike Naquin 2013-07-17 09:17:12 -05:00
parent 531a9630a1
commit 3755e6e422

View File

@ -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);
}