Skip to content

Waiting for asyncio.StreamWriter.drain() twice in parallel raises an AssertionError when the transport stopped writing #74116

Closed
@metathink

Description

@metathink
mannequin
BPO 29930
Nosy @vstinner, @cjerdonek, @socketpair, @1st1, @RemiCardona, @jnwatson, @CallumQuick
Files
  • server.py
  • client.py
  • drain_multiple_waiters.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2017-03-28.09:45:54.697>
    labels = ['type-bug', 'expert-asyncio']
    title = 'Waiting for asyncio.StreamWriter.drain() twice in parallel raises an AssertionError when the transport stopped writing'
    updated_at = <Date 2019-11-04.15:20:53.898>
    user = 'https://bugs.python.org/metathink'

    bugs.python.org fields:

    activity = <Date 2019-11-04.15:20:53.898>
    actor = 'callumquick'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['asyncio']
    creation = <Date 2017-03-28.09:45:54.697>
    creator = 'metathink'
    dependencies = []
    files = ['46761', '46762', '46763']
    hgrepos = []
    issue_num = 29930
    keywords = ['patch']
    message_count = 11.0
    messages = ['290690', '290702', '290703', '290704', '290706', '290732', '290760', '290773', '298981', '301767', '355951']
    nosy_count = 9.0
    nosy_names = ['vstinner', 'chris.jerdonek', 'socketpair', 'aymeric.augustin', 'yselivanov', 'RemiCardona', 'jnwatson', 'metathink', 'callumquick']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue29930'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Labels

    3.10only security fixes3.11only security fixes3.12only security fixestopic-asynciotype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions