The keep-alive is often received after marginally longer than 20 seconds, causing unnecessary timeouts and reconnects with a timeout of exactly 20 seconds
async def _connect(
self, method, url, params=None, headers=None, body=None,
- oauth_client=None, timeout=20
+ oauth_client=None, timeout=21
):
error_count = 0
# https://developer.twitter.com/en/docs/twitter-api/v1/tweets/filter-realtime/guides/connecting
def _connect(
self, method, url, auth=None, params=None, headers=None, body=None,
- timeout=20
+ timeout=21
):
self.running = True