Skip to content

Commit

Permalink
Fix wrong RFC number
Browse files Browse the repository at this point in the history
  • Loading branch information
MtkN1 authored and aaugustin committed Feb 7, 2024
1 parent 3b7fa76 commit aa33161
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/websockets/legacy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ async def __aiter__(self) -> AsyncIterator[WebSocketClientProtocol]:
yield protocol
except Exception:
# Add a random initial delay between 0 and 5 seconds.
# See 7.2.3. Recovering from Abnormal Closure in RFC 6544.
# See 7.2.3. Recovering from Abnormal Closure in RFC 6455.
if backoff_delay == self.BACKOFF_MIN:
initial_delay = random.random() * self.BACKOFF_INITIAL
self.logger.info(
Expand Down
10 changes: 5 additions & 5 deletions tests/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ class CloseTests(ProtocolTestCase):
"""
Test close frames.
See RFC 6544:
See RFC 6455:
5.5.1. Close
7.1.6. The WebSocket Connection Close Reason
Expand Down Expand Up @@ -994,7 +994,7 @@ def test_server_sends_close_after_connection_is_closed(self):

class PingTests(ProtocolTestCase):
"""
Test ping. See 5.5.2. Ping in RFC 6544.
Test ping. See 5.5.2. Ping in RFC 6455.
"""

Expand Down Expand Up @@ -1153,7 +1153,7 @@ def test_server_sends_ping_after_connection_is_closed(self):

class PongTests(ProtocolTestCase):
"""
Test pong frames. See 5.5.3. Pong in RFC 6544.
Test pong frames. See 5.5.3. Pong in RFC 6455.
"""

Expand Down Expand Up @@ -1298,7 +1298,7 @@ class FailTests(ProtocolTestCase):
"""
Test failing the connection.
See 7.1.7. Fail the WebSocket Connection in RFC 6544.
See 7.1.7. Fail the WebSocket Connection in RFC 6455.
"""

Expand All @@ -1321,7 +1321,7 @@ class FragmentationTests(ProtocolTestCase):
"""
Test message fragmentation.
See 5.4. Fragmentation in RFC 6544.
See 5.4. Fragmentation in RFC 6455.
"""

Expand Down

0 comments on commit aa33161

Please sign in to comment.