New submission from Russell Davis <[email protected]>:
Repro (on macOS):
from selectors import KqueueSelector, EVENT_READ
with open('/tmp/foo', 'w') as f:
f.write("bar")
sel = KqueueSelector()
sel.register(f, EVENT_READ)
sel.select()
The above code will hang on the last line. If you change KqueueSelector to
PollSelector or SelectSelector, it will not hang.
Per msg255116, the different selectors should behave consistently.
----------
components: IO, Library (Lib), asyncio
messages: 366167
nosy: asvetlov, russelldavis, yselivanov
priority: normal
severity: normal
status: open
title: selectors.KqueueSelector hangs on EOF, unlike other selectors
versions: Python 3.8
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue40251>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com