From af701cdaa23c75422ae7dc28403d72200cd9460d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 May 2010 08:36:35 +0000 Subject: [PATCH] better way to handle that last commit problem --- lib/request/connect.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)