Handle connection errors when streaming
authorHarmon <Harmon758@gmail.com>
Tue, 19 Jan 2021 09:40:05 +0000 (03:40 -0600)
committerHarmon <Harmon758@gmail.com>
Tue, 19 Jan 2021 09:40:05 +0000 (03:40 -0600)
commit68e19cc6b9b23d72369ca1520093770eb18a5a9f
treed0ba95ae0aef91b44a9691c2cc6dad670b2214ae
parent3d24a429e516c02c506c39ce9f70c5029e006f07
Handle connection errors when streaming

Handle requests.ConnectionError, urllib3.exceptions.ReadTimeoutError, urllib3.exceptions.ProtocolError

Handling urllib3.exceptions.ProtocolError should handle the reraised/wrapped http.client.IncompleteRead connection error that can occur and resolves #237 and resolves #448

Handling urllib3.exceptions.ReadTimeoutError resolves #750

Handling urllib3.exceptions.ProtocolError should also handle the reraised/wrapped ConnectionResetError that can occur and resolves #1416
tweepy/streaming.py