hide traceback on disconection

This commit is contained in:
n1nj4sec 2016-06-17 23:25:49 +02:00
parent 05cde8a404
commit 9a7c2148e1
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ class PupySocketStream(SocketStream):
try:
with self.upstream_lock:
self.buf_out.write(data)
self.transport.upstream_recv(self.buf_out)
try:
self.transport.upstream_recv(self.buf_out)
except EOFError as e:
logging.debug(traceback.format_exc())
#The write will be done by the _upstream_recv callback on the downstream buffer
except Exception as e:
logging.debug(traceback.format_exc())