]> git.mxchange.org Git - hub.git/commitdiff
Added code for "Broken pipe" (32).
authorRoland Haeder <roland@mxchange.org>
Fri, 25 Apr 2014 22:59:41 +0000 (00:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 25 Apr 2014 22:59:58 +0000 (00:59 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/class_BaseHubSystem.php
application/hub/main/handler/network/class_BaseRawDataHandler.php

index ef185202c600fc836f3b75a6c3dd663bfc6eae2a..ef68edf0429a787234b6a5bb01c61889e23af83c 100644 (file)
@@ -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;
index d1c5e1c8d271cad4492f2cac8c03ee5d44c5bbc0..05dc6438785abdda11d3a00ef0df011b8f0a0e9d 100644 (file)
@@ -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