File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 122122from lib .core .settings import PARAMETER_SPLITTING_REGEX
123123from lib .core .settings import PROBLEMATIC_CUSTOM_INJECTION_PATTERNS
124124from lib .core .settings import SITE
125+ from lib .core .settings import SOCKET_PRE_CONNECT_QUEUE_SIZE
125126from lib .core .settings import SQLMAP_ENVIRONMENT_PREFIX
126127from lib .core .settings import SUPPORTED_DBMS
127128from lib .core .settings import SUPPORTED_OS
@@ -1027,7 +1028,7 @@ def _():
10271028 while kb .threadContinue :
10281029 try :
10291030 for address in socket ._ready :
1030- if len (socket ._ready [address ]) < conf . threads :
1031+ if len (socket ._ready [address ]) < SOCKET_PRE_CONNECT_QUEUE_SIZE :
10311032 s = socket .socket ()
10321033 s ._connect (address )
10331034 with kb .locks .socket :
Original file line number Diff line number Diff line change 466466# Approximate chunk length (in bytes) used by BigArray objects (only last chunk and cached one are held in memory)
467467BIGARRAY_CHUNK_SIZE = 1024 * 1024
468468
469+ # Maximum number of socket pre-connects
470+ SOCKET_PRE_CONNECT_QUEUE_SIZE = 3
471+
469472# Only console display last n table rows
470473TRIM_STDOUT_DUMP_SIZE = 256
471474
You can’t perform that action at this time.
0 commit comments