Commit fae90914 authored by Aaron1011's avatar Aaron1011
Browse files

Merge pull request #498 from tewalds/incompleteread

Treat IncompleteRead as a disconnect or timeout, and reconnect.
parents b64527ac c841a09a
......@@ -182,7 +182,7 @@ class Stream(object):
self.snooze_time = self.snooze_time_step
self.listener.on_connect()
self._read_loop(resp)
except (Timeout, ssl.SSLError) as exc:
except (Timeout, ssl.SSLError, requests.compat.IncompleteRead) as exc:
# This is still necessary, as a SSLError can actually be
# thrown when using Requests
# If it's not time out treat it like any other exception
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment