Loading sjrpc/core/rpcconnection.py +6 −0 Original line number Diff line number Diff line Loading @@ -294,6 +294,12 @@ class RpcConnection(object): else: sent = self._sock.send(self._outbound_buffer) except socket.error as err: if (isinstance(err, socket.error) and err.errno in RpcConnection.NONBLOCKING_ERRORS): return elif (isinstance(err, ssl.SSLError) and err.errno in RpcConnection.NONBLOCKING_SSL_ERRORS): return errmsg = 'Fatal error while sending through socket: %s' % err self.logger.error(errmsg) raise SocketError(errmsg) Loading Loading
sjrpc/core/rpcconnection.py +6 −0 Original line number Diff line number Diff line Loading @@ -294,6 +294,12 @@ class RpcConnection(object): else: sent = self._sock.send(self._outbound_buffer) except socket.error as err: if (isinstance(err, socket.error) and err.errno in RpcConnection.NONBLOCKING_ERRORS): return elif (isinstance(err, ssl.SSLError) and err.errno in RpcConnection.NONBLOCKING_SSL_ERRORS): return errmsg = 'Fatal error while sending through socket: %s' % err self.logger.error(errmsg) raise SocketError(errmsg) Loading