Skip to content

smtplib leaves open sockets around if SMTPConnectError is raised in __init__ #74579

Description

@jhillacre
mannequin
BPO 30394
Nosy @bitdancer, @zhangyangyu, @jhillacre
PRs
  • bpo-30394: smtplib leaves open sockets around if SMTPConnectError is raised in __init__ #1700
  • [2.7] bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() #1788
  • [3.5] bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() #1789
  • [3.6] bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() #1790
  • Files
  • smtplib.patch
  • test_server.py
  • test_client.py
  • 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 2017-05-24.19:04:12.954>
    created_at = <Date 2017-05-17.23:25:01.619>
    labels = ['3.7', 'type-bug', 'library']
    title = 'smtplib leaves open sockets around if SMTPConnectError is raised in __init__'
    updated_at = <Date 2017-05-24.19:04:12.953>
    user = 'https://github.com/jhillacre'

    bugs.python.org fields:

    activity = <Date 2017-05-24.19:04:12.953>
    actor = 'xiang.zhang'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-05-24.19:04:12.954>
    closer = 'xiang.zhang'
    components = ['Library (Lib)']
    creation = <Date 2017-05-17.23:25:01.619>
    creator = 'jhillacre'
    dependencies = []
    files = ['46873', '46874', '46875']
    hgrepos = []
    issue_num = 30394
    keywords = ['patch']
    message_count = 10.0
    messages = ['293905', '294103', '294112', '294191', '294263', '294284', '294322', '294372', '294376', '294377']
    nosy_count = 3.0
    nosy_names = ['r.david.murray', 'xiang.zhang', 'jhillacre']
    pr_nums = ['1700', '1788', '1789', '1790']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30394'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6', 'Python 3.7']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions