mirror of https://github.com/n1nj4sec/pupy.git
Ignore errors during disconnection by timeout
This commit is contained in:
parent
a24617b6fd
commit
be76d6a476
|
@ -188,11 +188,13 @@ class PupyJob(object):
|
||||||
break
|
break
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
continue
|
continue
|
||||||
except EOFError:
|
except (rpyc.AsyncResultTimeout, ReferenceError, EOFError):
|
||||||
break
|
|
||||||
except rpyc.AsyncResultTimeout:
|
|
||||||
logging.debug("connection %s seems blocked, reinitialising..."%str(m))
|
logging.debug("connection %s seems blocked, reinitialising..."%str(m))
|
||||||
m.client.conn._conn.close()
|
try:
|
||||||
|
m.client.conn._conn.close()
|
||||||
|
except (rpyc.AsyncResultTimeout, ReferenceError, EOFError):
|
||||||
|
pass
|
||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
def is_finished(self):
|
def is_finished(self):
|
||||||
|
|
Loading…
Reference in New Issue