mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
Fix #805
This commit is contained in:
@ -34,7 +34,8 @@ class ReconnectingConnectionPool(adbapi.ConnectionPool):
|
|||||||
self, interaction, *args, **kw)
|
self, interaction, *args, **kw)
|
||||||
except MySQLdb.OperationalError as e:
|
except MySQLdb.OperationalError as e:
|
||||||
if e[0] not in (2003, 2006, 2013):
|
if e[0] not in (2003, 2006, 2013):
|
||||||
raise log.msg("RCP: got error {0}, retrying operation".format(e))
|
log.msg("RCP: got error {0}, retrying operation".format(e))
|
||||||
|
raise e
|
||||||
conn = self.connections.get(self.threadID())
|
conn = self.connections.get(self.threadID())
|
||||||
self.disconnect(conn)
|
self.disconnect(conn)
|
||||||
# Try the interaction again
|
# Try the interaction again
|
||||||
|
|||||||
Reference in New Issue
Block a user