From eb7c18d1f8e21a27ffef5ef8e0e8af46cab23c01 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 7 Oct 2015 09:25:14 +0200 Subject: [PATCH] Fixes #1452 --- 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 b0d645264..b5f222882 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -185,7 +185,11 @@ class Connect(object): kb.pageCompress = False else: while True: - _ = conn.read(MAX_CONNECTION_CHUNK_SIZE) + if not conn: + break + else: + _ = conn.read(MAX_CONNECTION_CHUNK_SIZE) + if len(_) == MAX_CONNECTION_CHUNK_SIZE: warnMsg = "large response detected. This could take a while" singleTimeWarnMessage(warnMsg)