mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Minor patch
This commit is contained in:
parent
89abeb0244
commit
5be0a83e94
|
@ -1026,12 +1026,16 @@ def _setSocketPreConnect():
|
|||
|
||||
def _():
|
||||
while kb.threadContinue:
|
||||
for address in socket._ready:
|
||||
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
||||
s = socket.socket()
|
||||
s._connect(address)
|
||||
socket._ready[address].append(s._sock)
|
||||
time.sleep(0.01)
|
||||
try:
|
||||
for address in socket._ready:
|
||||
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
||||
s = socket.socket()
|
||||
s._connect(address)
|
||||
socket._ready[address].append(s._sock)
|
||||
except socket.error:
|
||||
pass
|
||||
finally:
|
||||
time.sleep(0.01)
|
||||
|
||||
def connect(self, address):
|
||||
found = False
|
||||
|
|
Loading…
Reference in New Issue
Block a user