This commit is contained in:
Miroslav Stampar 2015-10-07 09:25:14 +02:00
parent 657d71119b
commit eb7c18d1f8

View File

@ -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)