diff --git a/lib/request/connect.py b/lib/request/connect.py index ff91bb365..90d36d91b 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -201,12 +201,14 @@ class Connect: else: try: page = e.read() + responseHeaders = e.info() except socket.timeout: - warnMsg = "connection timed out to the target url" - raise sqlmapConnectionException, warnMsg + warnMsg = "connection timed out while trying " + warnMsg += "to get error page information" + logger.warn(warnMsg) + page, responseHeaders = None, None code = e.code status = e.msg - responseHeaders = e.info() debugMsg = "got HTTP error code: %d" % code logger.debug(debugMsg)