Skip to content

Commit a276da6

Browse files
sjawharrevmischa
authored andcommitted
fix(relay): bump uvloop to 0.23.0 to fix a double-closed file descriptor
The relay runs gunicorn with uvicorn.workers.UvicornWorker, whose CONFIG_KWARGS hardcode loop="auto" (uvicorn 0.52.4 workers.py:30), so it runs on the uvloop its lock installs, and no environment variable changes that. uvloop 0.22.1 double-closes a file descriptor when loop.create_connection(sock=...) is cancelled or fails before the connection is made (MagicStack/uvloop#738): libuv closes the fd while the Python socket still holds the number, and releasing the socket later closes whatever the kernel has handed that number to since. aiohttp opens every connection that way, including the relay's pods/portforward websockets (kubernetes_asyncio WsApiClient). A reproduction at uvicorn 0.52.4 + httptools and aiohttp 3.14.3 lost 4-5 responses and delivered 49-52 to the wrong connection per 30 s run on uvloop 0.22.1, and none on 0.23.0, which carries the fix (METR#740). Only relay/uv.lock changes: uvloop 0.22.1 -> 0.23.0, published 2026-10-01, outside relay/pyproject.toml's one-week exclude-newer. Omp-Session: 01a10461-7b45-7468-b8bb-74181752fc32
1 parent d5177ec commit a276da6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎relay/uv.lock‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)