Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 657d711 commit eb7c18dCopy full SHA for eb7c18d
1 file changed
lib/request/connect.py
@@ -185,7 +185,11 @@ def _connReadProxy(conn):
185
kb.pageCompress = False
186
else:
187
while True:
188
- _ = conn.read(MAX_CONNECTION_CHUNK_SIZE)
+ if not conn:
189
+ break
190
+ else:
191
+ _ = conn.read(MAX_CONNECTION_CHUNK_SIZE)
192
+
193
if len(_) == MAX_CONNECTION_CHUNK_SIZE:
194
warnMsg = "large response detected. This could take a while"
195
singleTimeWarnMessage(warnMsg)
0 commit comments