From 3755e6e422735cb642b1118bd3658b30fdab5417 Mon Sep 17 00:00:00 2001 From: Mike Naquin Date: Wed, 17 Jul 2013 09:17:12 -0500 Subject: [PATCH] Check for EPIPE error on UNIX systems in SocketImpl::error --- Net/src/SocketImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Net/src/SocketImpl.cpp b/Net/src/SocketImpl.cpp index 899751465..95791a983 100644 --- a/Net/src/SocketImpl.cpp +++ b/Net/src/SocketImpl.cpp @@ -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); }