mirror of https://github.com/n1nj4sec/pupy.git
hide traceback on disconection
This commit is contained in:
parent
05cde8a404
commit
9a7c2148e1
|
@ -105,7 +105,10 @@ class PupySocketStream(SocketStream):
|
||||||
try:
|
try:
|
||||||
with self.upstream_lock:
|
with self.upstream_lock:
|
||||||
self.buf_out.write(data)
|
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
|
#The write will be done by the _upstream_recv callback on the downstream buffer
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.debug(traceback.format_exc())
|
logging.debug(traceback.format_exc())
|
||||||
|
|
Loading…
Reference in New Issue