mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +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.redirectSetCookie = None
|
||||||
kb.responseTimes = []
|
kb.responseTimes = []
|
||||||
kb.resumedQueries = {}
|
kb.resumedQueries = {}
|
||||||
kb.retriesCount = 0
|
|
||||||
kb.singleLogFlags = set()
|
kb.singleLogFlags = set()
|
||||||
kb.skipOthersDbms = None
|
kb.skipOthersDbms = None
|
||||||
kb.suppressSession = False
|
kb.suppressSession = False
|
||||||
|
|
|
@ -255,7 +255,7 @@ class Connect:
|
||||||
conf.redirectHandled = True
|
conf.redirectHandled = True
|
||||||
|
|
||||||
# Reset the number of connection retries
|
# Reset the number of connection retries
|
||||||
kb.retriesCount = 0
|
threadData.retriesCount = 0
|
||||||
|
|
||||||
# Return response object
|
# Return response object
|
||||||
if response:
|
if response:
|
||||||
|
@ -379,8 +379,8 @@ class Connect:
|
||||||
return None, None
|
return None, None
|
||||||
elif silent or (ignoreTimeout and any(map(lambda x: x in tbMsg, ["timed out", "IncompleteRead"]))):
|
elif silent or (ignoreTimeout and any(map(lambda x: x in tbMsg, ["timed out", "IncompleteRead"]))):
|
||||||
return None, None
|
return None, None
|
||||||
elif kb.retriesCount < conf.retries and not kb.threadException and not conf.realTest:
|
elif threadData.retriesCount < conf.retries and not kb.threadException and not conf.realTest:
|
||||||
kb.retriesCount += 1
|
threadData.retriesCount += 1
|
||||||
|
|
||||||
warnMsg += ", sqlmap is going to retry the request"
|
warnMsg += ", sqlmap is going to retry the request"
|
||||||
logger.critical(warnMsg)
|
logger.critical(warnMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user