]> git.mxchange.org Git - hub.git/commitdiff
Handled "connection reset by peer" error.
authorRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:38:06 +0000 (23:38 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:38:06 +0000 (23:38 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/class_BaseHubSystem.php

index fdfb615f86ff28b273eea8d30aa4bf305cb5abce..a14384e1cfa5d9db6e036d168645a412dedb38c5 100644 (file)
@@ -31,6 +31,7 @@ class BaseHubSystem extends BaseFrameworkSystem {
        const EXCEPTION_BASE64_ENCODING_NOT_MODULO_4  = 0x905;
        const EXCEPTION_NODE_SESSION_ID_NOT_VERIFYING = 0x906;
        const EXCEPTION_REQUEST_NOT_ACCEPTED          = 0x907;
+       const SOCKET_ERROR_CONNECTION_RESET_BY_PEER   = 0x908;
 
        // Message status codes
        const MESSAGE_STATUS_CODE_OKAY = 'OKAY';
@@ -488,6 +489,10 @@ class BaseHubSystem extends BaseFrameworkSystem {
                                $errorName = BaseRawDataHandler::SOCKET_ERROR_RESOURCE_UNAVAILABLE;
                                break;
 
+                       case 104: // "Connection reset by peer"
+                               $errorName = BaseRawDataHandler::SOCKET_ERROR_CONNECTION_RESET_BY_PEER;
+                               break;
+
                        case 107: // "Transport end-point not connected"
                        case 134: // On some (?) systems for 'transport end-point not connected'
                                // @TODO On some systems it is 134, on some 107?