Skip to content

Commit aa33161

Browse files
MtkN1aaugustin
authored andcommitted
Fix wrong RFC number
1 parent 3b7fa76 commit aa33161

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/websockets/legacy/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ async def __aiter__(self) -> AsyncIterator[WebSocketClientProtocol]:
599599
yield protocol
600600
except Exception:
601601
# Add a random initial delay between 0 and 5 seconds.
602-
# See 7.2.3. Recovering from Abnormal Closure in RFC 6544.
602+
# See 7.2.3. Recovering from Abnormal Closure in RFC 6455.
603603
if backoff_delay == self.BACKOFF_MIN:
604604
initial_delay = random.random() * self.BACKOFF_INITIAL
605605
self.logger.info(

tests/test_protocol.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ class CloseTests(ProtocolTestCase):
714714
"""
715715
Test close frames.
716716
717-
See RFC 6544:
717+
See RFC 6455:
718718
719719
5.5.1. Close
720720
7.1.6. The WebSocket Connection Close Reason
@@ -994,7 +994,7 @@ def test_server_sends_close_after_connection_is_closed(self):
994994

995995
class PingTests(ProtocolTestCase):
996996
"""
997-
Test ping. See 5.5.2. Ping in RFC 6544.
997+
Test ping. See 5.5.2. Ping in RFC 6455.
998998
999999
"""
10001000

@@ -1153,7 +1153,7 @@ def test_server_sends_ping_after_connection_is_closed(self):
11531153

11541154
class PongTests(ProtocolTestCase):
11551155
"""
1156-
Test pong frames. See 5.5.3. Pong in RFC 6544.
1156+
Test pong frames. See 5.5.3. Pong in RFC 6455.
11571157
11581158
"""
11591159

@@ -1298,7 +1298,7 @@ class FailTests(ProtocolTestCase):
12981298
"""
12991299
Test failing the connection.
13001300
1301-
See 7.1.7. Fail the WebSocket Connection in RFC 6544.
1301+
See 7.1.7. Fail the WebSocket Connection in RFC 6455.
13021302
13031303
"""
13041304

@@ -1321,7 +1321,7 @@ class FragmentationTests(ProtocolTestCase):
13211321
"""
13221322
Test message fragmentation.
13231323
1324-
See 5.4. Fragmentation in RFC 6544.
1324+
See 5.4. Fragmentation in RFC 6455.
13251325
13261326
"""
13271327

0 commit comments

Comments
 (0)