mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor bug fix for multithreading and lots of connection retries
This commit is contained in:
parent
22a1870c2c
commit
a64407d9db
|
@ -1355,7 +1355,6 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
|||
kb.redirectSetCookie = None
|
||||
kb.responseTimes = []
|
||||
kb.resumedQueries = {}
|
||||
kb.retriesCount = 0
|
||||
kb.singleLogFlags = set()
|
||||
kb.skipOthersDbms = None
|
||||
kb.suppressSession = False
|
||||
|
|
|
@ -255,7 +255,7 @@ class Connect:
|
|||
conf.redirectHandled = True
|
||||
|
||||
# Reset the number of connection retries
|
||||
kb.retriesCount = 0
|
||||
threadData.retriesCount = 0
|
||||
|
||||
# Return response object
|
||||
if response:
|
||||
|
@ -379,8 +379,8 @@ class Connect:
|
|||
return None, None
|
||||
elif silent or (ignoreTimeout and any(map(lambda x: x in tbMsg, ["timed out", "IncompleteRead"]))):
|
||||
return None, None
|
||||
elif kb.retriesCount < conf.retries and not kb.threadException and not conf.realTest:
|
||||
kb.retriesCount += 1
|
||||
elif threadData.retriesCount < conf.retries and not kb.threadException and not conf.realTest:
|
||||
threadData.retriesCount += 1
|
||||
|
||||
warnMsg += ", sqlmap is going to retry the request"
|
||||
logger.critical(warnMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user