classification
Title: Deadlock in asyncio.StreamReader.readexactly() (fix applied, need unit test)
Type: behavior Stage: test needed
Components: asyncio Versions: Python 3.4
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, haypo, python-dev, yselivanov
Priority: high Keywords:

Created on 2014-01-07 00:07 by gvanrossum, last changed 2014-06-06 11:40 by haypo.

Messages (5)
msg207494 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2014-01-07 00:07
There's currently a deadlock in StreamReader.readexactly() -- if the requested size is larger than the buffer limit for pause, the transport may be paused with no way to unpause it.

See http://code.google.com/p/tulip/issues/detail?id=99 in the Tulip tracker.
msg207495 - (view) Author: Roundup Robot (python-dev) Date: 2014-01-07 00:09
New changeset 54d32e01bbfd by Guido van Rossum in branch 'default':
asyncio: Fix deadlock in readexactly(). Fixes issue #20154.
http://hg.python.org/cpython/rev/54d32e01bbfd
msg207496 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2014-01-07 00:15
I'd appreciate help writing a test.  (Debugging this already set me back enough hours.)
msg210395 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2014-02-06 14:51
> I'd appreciate help writing a test.  (Debugging this already set me back enough hours.)

Guido: do you still plan to write such unit test or can we close the issue?
msg210408 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2014-02-06 16:26
I'd still like there to be a test.
On Feb 6, 2014 6:52 AM, "STINNER Victor" <report@bugs.python.org> wrote:

>
> STINNER Victor added the comment:
>
> > I'd appreciate help writing a test.  (Debugging this already set me back
> enough hours.)
>
> Guido: do you still plan to write such unit test or can we close the issue?
>
> ----------
> nosy: +haypo
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue20154>
> _______________________________________
>
History
Date User Action Args
2014-06-06 11:40:43hayposetnosy: + yselivanov
components: + asyncio
2014-03-13 09:55:46hayposettitle: Deadlock in asyncio.StreamReader.readexactly() -> Deadlock in asyncio.StreamReader.readexactly() (fix applied, need unit test)
2014-02-06 16:26:07gvanrossumsetmessages: + msg210408
2014-02-06 14:51:49hayposetnosy: + haypo
messages: + msg210395
2014-01-07 00:15:52gvanrossumsetresolution: remind
messages: + msg207496
2014-01-07 00:09:29python-devsetnosy: + python-dev
messages: + msg207495
2014-01-07 00:07:48gvanrossumcreate