[New-bugs-announce] [issue24431] StreamWriter.drain is not callable concurrently

Martin Teichmann report at bugs.python.org
Thu Jun 11 16:59:12 CEST 2015


New submission from Martin Teichmann:

Currently there is an assert statement asserting that no two
tasks (asyncio tasks, that is) can use StreamWriter.drain at
the same time. This is a weird limitiation, if there are two
tasks writing to the same network socket, there is no reason
why not both of them should drain the socket after (or before)
writing to it.

A simple bug fix is attached.

----------
components: asyncio
files: patch
messages: 245172
nosy: Martin.Teichmann, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: StreamWriter.drain is not callable concurrently
type: behavior
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39681/patch

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


More information about the New-bugs-announce mailing list