MagicStack / MagicStack/uvloop

Python3.13 support - `close_clients`

Open
#683 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cython
Stars
11.9k
Forks
616
PR merge metrics
No merged PRs in 30d

Description

Hello!
First of all - thanks for the amazing project.

I am using python3.13 and I noticed that uvloop's Server doesn't have close_clients.

Since running projects with fastapi and uvicorn uses uvloop, it means that any code that uses them might not support python3.13.

The exception I receive is:

AttributeError: 'uvloop.loop.Server' object has no attribute 'close_clients'

And in my humble opinion it should behave as https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.Server.close_clients

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing uvloop's Server API with Python 3.13's asyncio.Server.close_clients documentation, using the reported AttributeError as the initial reproduction. Done means uvloop's Server provides close_clients with behavior matching the documented asyncio API; the issue mentions FastAPI and uvicorn as integration contexts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.