[New-bugs-announce] [issue25642] Setting maxsize breaks asyncio.JoinableQueue/Queue

Chris Seto report at bugs.python.org
Mon Nov 16 19:37:33 EST 2015

New submission from Chris Seto:

When maxsize is set on a JoinableQueue/Queue and the queue is full (maxsize <= len(queue)) _put is called rather than __put_internal.
__put_internal increments _unfinished_tasks but _put does not.
Whenever using maxsize in a Queue calling task_done will almost always cause a ValueError('task_done() called too many times').

components: asyncio
files: test.py
messages: 254773
nosy: Chris Seto, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: Setting maxsize breaks asyncio.JoinableQueue/Queue
type: crash
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file41057/test.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list