[New-bugs-announce] [issue33793] asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable

STINNER Victor report at bugs.python.org
Thu Jun 7 06:44:35 EDT 2018


New submission from STINNER Victor <vstinner at redhat.com>:

_SelectorTransport has the class attribute:
    max_size = 256 * 1024  # Buffer size passed to recv().

But _ProactorReadPipeTransport uses an hardcoded chunk size of 32 KiB. It would be nice to allow to configure this size.

By the way, _SelectorTransport.max_size has no public API to change the default value for the whole process. The attribute can only be set per socket, since _SelectorTransport is private. By the way, is the attribute documented?

----------
components: asyncio
messages: 318923
nosy: asvetlov, vstinner, yselivanov
priority: normal
severity: normal
status: open
title: asyncio: _ProactorReadPipeTransport reads by chunk of 32 KiB: chunk size should be configurable
type: performance
versions: Python 3.8

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


More information about the New-bugs-announce mailing list