Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swallow unhandled exception report introduced by 36802 #81097

Closed
asvetlov opened this issue May 14, 2019 · 2 comments
Closed

Swallow unhandled exception report introduced by 36802 #81097

asvetlov opened this issue May 14, 2019 · 2 comments
Labels
3.8 only security fixes stdlib Python modules in the Lib dir topic-asyncio type-bug An unexpected behavior, bug, or error

Comments

@asvetlov
Copy link
Contributor

BPO 36916
Nosy @vstinner, @asvetlov, @1st1
PRs
  • bpo-36916: Swallow unhandled exception #13313
  • 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 = <Date 2019-05-15.08:06:07.603>
    created_at = <Date 2019-05-14.12:35:05.474>
    labels = ['3.8', 'type-bug', 'library', 'expert-asyncio']
    title = 'Swallow unhandled exception report introduced by 36802'
    updated_at = <Date 2019-05-15.08:06:07.602>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2019-05-15.08:06:07.602>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-15.08:06:07.603>
    closer = 'asvetlov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2019-05-14.12:35:05.474>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36916
    keywords = ['patch']
    message_count = 2.0
    messages = ['342457', '342481']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'asvetlov', 'yselivanov']
    pr_nums = ['13313']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36916'
    versions = ['Python 3.8']

    @asvetlov
    Copy link
    Contributor Author

    In bpo-36802 when old-style writer.write() is used without awaiting and an exception is raised from writer.drain() method asyncio reports about the unhandled exception.

    The proposed fix adds a done callback to task for swallowing the exception in such case.

    @asvetlov asvetlov added stdlib Python modules in the Lib dir topic-asyncio 3.8 only security fixes type-bug An unexpected behavior, bug, or error labels May 14, 2019
    @vstinner
    Copy link
    Member

    New changeset f12ba7c by Victor Stinner (Andrew Svetlov) in branch 'master':
    bpo-36916: asyncio: Swallow unhandled write() exception (GH-13313)
    f12ba7c

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes stdlib Python modules in the Lib dir topic-asyncio type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants