[New-bugs-announce] [issue30996] add coroutine AbstractEventLoop.sock_close

Fengyuan Chen report at bugs.python.org
Sun Jul 23 05:30:08 EDT 2017


New submission from Fengyuan Chen:

I suppose asyncio lack async version of sock_close that can call loop.remove_reader and others before close socket and perhaps lack something like coroutine AbstractEventLoop.sock_make_blocking that can do some deregister job.

switch constant in the script:
* change CALL_REMOVE_READING_BEFORE_CLOSE to True will make script running smoothly
* change USE_UVLOOP to True will make script use uvloop

----------
components: asyncio
files: asyncio_wait_forever.py
messages: 298894
nosy: cfy, yselivanov
priority: normal
severity: normal
status: open
title: add coroutine AbstractEventLoop.sock_close
type: resource usage
versions: Python 3.6
Added file: http://bugs.python.org/file47034/asyncio_wait_forever.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30996>
_______________________________________


More information about the New-bugs-announce mailing list