Pump up default timeout from 5 to 10s

This commit is contained in:
Lonami Exo
2018-06-17 11:46:56 +02:00
parent d18ee9ecc5
commit 226c35ff8f
5 changed files with 10 additions and 14 deletions

View File

@@ -11,7 +11,6 @@ import asyncio
import errno
import logging
import socket
from datetime import timedelta
from io import BytesIO
CONN_RESET_ERRNOS = {
@@ -38,7 +37,7 @@ class TcpClient:
class SocketClosed(ConnectionError):
pass
def __init__(self, *, loop, proxy=None, timeout=timedelta(seconds=5)):
def __init__(self, *, loop, timeout, proxy=None):
"""
Initializes the TCP client.