-
-
Notifications
You must be signed in to change notification settings - Fork 789
uvicorn reload fails on Windows and Python 3.8 #529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This does not repro on py37, reloading works fine there.
|
Right, so the problem here is to do with IOCP. In Python 3.8 the default loop policy changes on Windows to use IOCP by default. We probably want to explcitly turn this off (and remove our Does this only occur when using multiple workers / reload, or does it always occur on Python 3.8 with Windows? |
|
I'm not sure I understand the question. If I launch uvicorn with --reload and just use it (without changing code), it works OK with no errors. As soon as the reload is requested all hell breaks loose. |
|
summary: 3.8 |
note also that Lines 33 to 36 in a75fe13
and Lines 65 to 66 in a75fe13
can be replaced by |
Indeed. The problem is that To resolve this we should:
|
seems like that did the trick
|
I know this was referred to in #477 and #509 but it still isn't solved (making a new issue as I hijacked a closed one before).
Using uvicorn checked out 996aa2d, running with or without
--loop asyncio
changes nothing (that code was removed):The text was updated successfully, but these errors were encountered: