properly express state information on server connections, refs #315

This commit is contained in:
Maximilian Hils
2014-08-08 02:45:24 +02:00
parent c01b294d8d
commit a9e6121a08
5 changed files with 44 additions and 34 deletions

View File

@@ -148,6 +148,14 @@ class ProtocolHandler(object):
"""
raise NotImplementedError # pragma: nocover
def handle_server_reconnect(self, state):
"""
This method gets called if a server connection needs to reconnect and there's a state associated
with the server connection (e.g. a previously-sent CONNECT request or a SOCKS proxy request).
This method gets called after the connection has been restablished but before SSL is established.
"""
raise NotImplementedError # pragma: nocover
def handle_error(self, error):
"""
This method gets called should there be an uncaught exception during the connection.