mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-22 23:49:04 +00:00
minor bug fix for multithreading and lots of connection retries
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user