Title: selectors.KqueueSelector hangs on EOF, unlike other selectors
Type: Stage:
Components: asyncio, IO, Library (Lib) Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, russelldavis, yselivanov
Priority: normal Keywords:

Created on 2020-04-10 23:13 by russelldavis, last changed 2020-04-10 23:13 by russelldavis.

Messages (1)
msg366167 - (view) Author: Russell Davis (russelldavis) * Date: 2020-04-10 23:13
Repro (on macOS):

    from selectors import KqueueSelector, EVENT_READ
    with open('/tmp/foo', 'w') as f:
        sel = KqueueSelector()
        sel.register(f, EVENT_READ)

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.
Date User Action Args
2020-04-10 23:13:44russelldaviscreate