[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

Carlton Gibson report at bugs.python.org
Wed Oct 23 06:12:12 EDT 2019


Carlton Gibson <carlton.gibson at noumenal.es> added the comment:

This change causes an issue in asgiref (and so Django) for Windows and Python 3.8. 

https://github.com/django/asgiref/issues/132
https://code.djangoproject.com/ticket/30900

It looks as if `ProactorEventLoop` needs to check the current thread before triggering the signal... 

```
File "C:\Jenkins\workspace\django-windows\database\sqlite3\label\windows\python\Python38\.env\lib\site-packages\asgiref\sync.py", line 130, in _run_event_loop
File "C:\Python38\lib\asyncio\proactor_events.py", line 679, in close
    signal.set_wakeup_fd(-1)
ValueError: set_wakeup_fd only works in main thread
```

... but I'm not familiar with the internals here as yet. 

(I'm guessing I need to create a new issue?)

----------
nosy: +carltongibson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34687>
_______________________________________


More information about the Python-bugs-list mailing list