Catch a potential exception on connection finalization.

This commit is contained in:
Aldo Cortesi 2012-09-14 09:40:13 +12:00
parent b7d89f6919
commit 54cee9db7f
1 changed files with 4 additions and 1 deletions

View File

@ -418,7 +418,10 @@ class ProxyServer(tcp.TCPServer):
def handle_connection(self, request, client_address):
h = ProxyHandler(self.config, request, client_address, self, self.masterq, self.server_version)
h.handle()
h.finish()
try:
h.finish()
except tcp.NetLibDisconnect, e:
pass
def handle_shutdown(self):
try: