From: Roland Haeder Date: Fri, 25 Apr 2014 22:59:41 +0000 (+0200) Subject: Added code for "Broken pipe" (32). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f2cad1aed2edcba62edb8fd2f20b1280035bdc0;p=hub.git Added code for "Broken pipe" (32). Signed-off-by: Roland Haeder --- diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index ef185202c..ef68edf04 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -515,6 +515,10 @@ class BaseHubSystem extends BaseFrameworkSystem { $errorName = BaseRawDataHandler::SOCKET_ERROR_RESOURCE_UNAVAILABLE; break; + case 32: // "Broken pipe" + $errorName = BaseRawDataHandler::SOCKET_ERROR_BROKEN_PIPE; + break; + case 104: // "Connection reset by peer" $errorName = BaseRawDataHandler::SOCKET_ERROR_CONNECTION_RESET_BY_PEER; break; diff --git a/application/hub/main/handler/network/class_BaseRawDataHandler.php b/application/hub/main/handler/network/class_BaseRawDataHandler.php index d1c5e1c8d..05dc64387 100644 --- a/application/hub/main/handler/network/class_BaseRawDataHandler.php +++ b/application/hub/main/handler/network/class_BaseRawDataHandler.php @@ -36,6 +36,7 @@ class BaseRawDataHandler extends BaseHandler { const SOCKET_ERROR_RESOURCE_UNAVAILABLE = 'resource_unavailable'; // 'Resource temporary unavailable' const SOCKET_ERROR_NO_ROUTE_TO_HOST = 'no_route_to_host'; // The name says it: no route to host const SOCKET_ERROR_CONNECTION_RESET_BY_PEER = 'connection_reset_by_peer'; // Connection reset by peer + const SOCKET_ERROR_BROKEN_PIPE = 'broken_pipe'; // Broken pipe const SOCKET_CONNECTED = 'connected'; // Nothing errorous happens, socket is connected // - Package errors