*/
class BaseNetworkPackageHandler extends BaseHandler {
// Error codes
- const SOCKET_ERROR_GENERAL = 'general_error';
+ const SOCKET_ERROR_UNKNOWN = 'unknown_error';
const SOCKET_ERROR_TRANSPORT_ENDPOINT = 'transport_endpoint';
const SOCKET_ERROR_UNHANDLED = 'unhandled_package';
const SOCKET_ERROR_EMPTY_DATA = 'empty_data';
$errorCode = $packageInstance->getErrorCode();
// Is the code a number, then we have to change it
- if ($errorCode == 134) {
+ if (($errorCode == 134) || ($errorCode == 107)) {
// Transport endpoint not connected, should be handled else!
+ // @TODO On some systems it is 134, on some 107?
$errorCode = BaseNetworkPackageHandler::SOCKET_ERROR_TRANSPORT_ENDPOINT;
} elseif (is_int($errorCode)) {
// Debug output (because we might want to handle it like the above(s)
- $this->debugOutput(__METHOD__ . ': errorCode=' . $errorCode);
+ $this->debugOutput(__METHOD__ . ': UNKNOWN ERROR CODE = ' . $errorCode);
// Change it only in this class
- $errorCode = BaseNetworkPackageHandler::SOCKET_ERROR_GENERAL;
+ $errorCode = BaseNetworkPackageHandler::SOCKET_ERROR_UNKNOWN;
} // END - if
$this->partialStub('errorCode='.$errorCode.',rawData[] = '.gettype($rawData).'('.strlen($rawData).')');