minor refactoring

This commit is contained in:
Miroslav Stampar
2011-02-22 13:00:58 +00:00
parent dcad5410fe
commit 3f8eadf4fe
2 changed files with 5 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ from lib.core.enums import NULLCONNECTION
from lib.core.enums import PLACE
from lib.core.exception import sqlmapConnectionException
from lib.core.exception import sqlmapSyntaxException
from lib.core.settings import HTTP_SILENT_TIMEOUT
from lib.core.settings import MIN_TIME_RESPONSES
from lib.core.settings import URI_HTTP_HEADER
from lib.core.threads import getCurrentThreadData
@@ -102,7 +103,7 @@ class Connect:
try:
if silent:
socket.setdefaulttimeout(3)
socket.setdefaulttimeout(HTTP_SILENT_TIMEOUT)
if direct:
if "?" in url: