Skip to content

Commit 17d50fa

Browse files
More instrumentation for #572 #nolog
1 parent 81b0b84 commit 17d50fa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

socketio/asyncio_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AsyncClient(client.Client):
2121
reconnect to the server after an interruption, or
2222
``False`` to not reconnect. The default is ``True``.
2323
:param reconnection_attempts: How many reconnection attempts to issue
24-
before giving up, or 0 for infinity attempts.
24+
before giving up, or 0 for infinite attempts.
2525
The default is 0.
2626
:param reconnection_delay: How long to wait in seconds before the first
2727
reconnection attempt. Each successive attempt

socketio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Client(object):
4242
reconnect to the server after an interruption, or
4343
``False`` to not reconnect. The default is ``True``.
4444
:param reconnection_attempts: How many reconnection attempts to issue
45-
before giving up, or 0 for infinity attempts.
45+
before giving up, or 0 for infinite attempts.
4646
The default is 0.
4747
:param reconnection_delay: How long to wait in seconds before the first
4848
reconnection attempt. Each successive attempt

tests/asyncio/test_asyncio_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ def test_handle_reconnect_max_attempts(self, random, wait_for):
905905
side_effect=[ValueError, exceptions.ConnectionError, None]
906906
)
907907
_run(c._handle_reconnect())
908+
print(c.reconnection_attempts)
908909
print(wait_for.mock.call_count) # logging to debug #572
909910
print(wait_for.mock.call_args_list)
910911
assert wait_for.mock.call_count == 2

0 commit comments

Comments
 (0)