mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
fix for a bug noticed when using --keep-alive --threads on IIS/MSSQL
This commit is contained in:
@@ -97,8 +97,8 @@ class HTTPHandler(urllib2.HTTPHandler):
|
||||
"""return a list of connected hosts"""
|
||||
retVal = []
|
||||
currentThread = threading.currentThread()
|
||||
for thread, host in self._connections.keys():
|
||||
if thread == currentThread:
|
||||
for name, host in self._connections.keys():
|
||||
if name == currentThread.getName():
|
||||
retVal.append(host)
|
||||
return retVal
|
||||
|
||||
@@ -115,7 +115,7 @@ class HTTPHandler(urllib2.HTTPHandler):
|
||||
del self._connections[key]
|
||||
|
||||
def _get_connection_key(self, host):
|
||||
return (threading.currentThread(), host)
|
||||
return (threading.currentThread().getName(), host)
|
||||
|
||||
def _start_connection(self, h, req):
|
||||
h.clearheaders()
|
||||
|
||||
Reference in New Issue
Block a user