Skip to content

Commit

Permalink
Update references to Python's bug tracker.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Aug 5, 2024
1 parent 14cca76 commit 7bb18a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/websockets/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def win_enable_vt100() -> None:
"""
Enable VT-100 for console output on Windows.
See also https://bugs.python.org/issue29059.
See also https://github.com/python/cpython/issues/73245.
"""
import ctypes
Expand Down
6 changes: 3 additions & 3 deletions src/websockets/legacy/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,9 +1175,9 @@ def write_frame_sync(self, fin: bool, opcode: int, data: bytes) -> None:

async def drain(self) -> None:
try:
# drain() cannot be called concurrently by multiple coroutines:
# http://bugs.python.org/issue29930. Remove this lock when no
# version of Python where this bugs exists is supported anymore.
# drain() cannot be called concurrently by multiple coroutines.
# See https://github.com/python/cpython/issues/74116 for details.
# This workaround can be removed when dropping Python < 3.10.
async with self._drain_lock:
# Handle flow control automatically.
await self._drain()
Expand Down
3 changes: 2 additions & 1 deletion src/websockets/legacy/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,8 @@ async def _close(self, close_connections: bool) -> None:
self.server.close()

# Wait until all accepted connections reach connection_made() and call
# register(). See https://bugs.python.org/issue34852 for details.
# register(). See https://github.com/python/cpython/issues/79033 for
# details. This workaround can be removed when dropping Python < 3.11.
await asyncio.sleep(0)

if close_connections:
Expand Down

0 comments on commit 7bb18a6

Please sign in to comment.