mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 06:01:29 +00:00
Minor patch
This commit is contained in:
@@ -1026,11 +1026,15 @@ def _setSocketPreConnect():
|
|||||||
|
|
||||||
def _():
|
def _():
|
||||||
while kb.threadContinue:
|
while kb.threadContinue:
|
||||||
|
try:
|
||||||
for address in socket._ready:
|
for address in socket._ready:
|
||||||
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
if len(socket._ready[address]) < SOCKET_PRE_CONNECT_QUEUE_SIZE:
|
||||||
s = socket.socket()
|
s = socket.socket()
|
||||||
s._connect(address)
|
s._connect(address)
|
||||||
socket._ready[address].append(s._sock)
|
socket._ready[address].append(s._sock)
|
||||||
|
except socket.error:
|
||||||
|
pass
|
||||||
|
finally:
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
def connect(self, address):
|
def connect(self, address):
|
||||||
|
|||||||
Reference in New Issue
Block a user