Skip to content

Commit

Permalink
Change pingTimeout to 20 seconds to match JavaScript's Socket.IO 4.x …
Browse files Browse the repository at this point in the history
…releases
  • Loading branch information
miguelgrinberg committed Apr 14, 2021
1 parent e3ea3e5 commit 1e29203
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion engineio/asyncio_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AsyncServer(server.Server):
is a grace period added by the server.
:param ping_timeout: The time in seconds that the client waits for the
server to respond before disconnecting. The default
is 5 seconds.
is 20 seconds.
:param max_http_buffer_size: The maximum size of a message when using the
polling transport. The default is 1,000,000
bytes.
Expand Down
4 changes: 2 additions & 2 deletions engineio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Server(object):
is a grace period added by the server.
:param ping_timeout: The time in seconds that the client waits for the
server to respond before disconnecting. The default
is 5 seconds.
is 20 seconds.
:param max_http_buffer_size: The maximum size of a message when using the
polling transport. The default is 1,000,000
bytes.
Expand Down Expand Up @@ -86,7 +86,7 @@ class Server(object):
_default_monitor_clients = True
sequence_number = 0

def __init__(self, async_mode=None, ping_interval=25, ping_timeout=5,
def __init__(self, async_mode=None, ping_interval=25, ping_timeout=20,
max_http_buffer_size=1000000, allow_upgrades=True,
http_compression=True, compression_threshold=1024,
cookie=None, cors_allowed_origins=None,
Expand Down

0 comments on commit 1e29203

Please sign in to comment.