From 5bc07426e0cbbeb20b6796647bb0d7c1ccfc1d0e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 4 May 2010 08:03:48 +0000 Subject: [PATCH] added exception handler around block reported by Thierry Zoller --- lib/request/connect.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 4190771ea..ff91bb365 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -199,7 +199,11 @@ class Connect: errMsg = "page not found" raise sqlmapConnectionException, errMsg else: - page = e.read() + try: + page = e.read() + except socket.timeout: + warnMsg = "connection timed out to the target url" + raise sqlmapConnectionException, warnMsg code = e.code status = e.msg responseHeaders = e.info()