Commit 7c980e50 authored by Aurel's avatar Aurel

remove the getattr as a connector must implement everything explicitely

add close method


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@394 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent feb5e9d0
......@@ -45,10 +45,6 @@ class SocketConnector:
else:
self.socket = s
def __getattr__(self, name):
""" fallback to default socket methods """
return getattr(self.socket, name)
def makeClientConnection(self, addr):
try:
self.socket.setblocking(0)
......@@ -115,6 +111,9 @@ class SocketConnector:
logging.error('send: %s', m[1])
raise
def close(self):
return self.socket.close()
registerConnectorHandler(SocketConnector)
class ConnectorTryAgainException(Exception): pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment