From 1f2cad1aed2edcba62edb8fd2f20b1280035bdc0 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 26 Apr 2014 00:59:41 +0200 Subject: [PATCH] Added code for "Broken pipe" (32). Signed-off-by: Roland Haeder --- application/hub/main/class_BaseHubSystem.php | 4 ++++ .../hub/main/handler/network/class_BaseRawDataHandler.php | 1 + 2 files changed, 5 insertions(+) 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 -- 2.39.5