- // @TODO Handle 115 error ("operation in progress")
- $helperInstance->handleSocketError($socketResource, $recipientData);
- /*
- // Get socket error code for verification
- $socketError = socket_last_error($socketResource);
-
- // And throw again, but not for 'Operation now in progress'; the shutdownSocket() method should wait a little
- if ($socketError != 115) {
- // Get error message
- $errorMessage = socket_strerror($socketError);
-
- // Shutdown this socket
- $helperInstance->shutdownSocket($socketResource);
-
- // Throw it again
- throw new SocketConnectionException(array($helperInstance, $socketResource, $socketError, $errorMessage), BaseListener::EXCEPTION_INVALID_SOCKET);
- } else {
- // Debug output
- $helperInstance->debugOutput('CONNECTION: Operation is in progress, this usual for non-blocking connections.');
- }
- */
+ $helperInstance->handleSocketError(__METHOD__, __LINE__, $socketResource, $recipientData);