Skip to content

In some cases asyncio.wait_for can lead to socket leak.#81839

@NikitaIlyasov

Description

@NikitaIlyasov
BPO37658
Nosy@ods, @asvetlov, @cjerdonek, @elprans, @ambv, @1st1, @miss-islington, @Dreamsorcerer, @aaliddell, @kumaraditya303
PRs
  • bpo-37658: Fix asyncio.wait_for() to respect waited task status #21894
  • [3.9] bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) #21964
  • [3.8] bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) #21965
  • [3.7] bpo-37658: Fix asyncio.wait_for() to respect waited task status (GH-21894) #21969
  • bpo-42130: Fix swallowing of cancellation by wait_for #26097
  • bpo-37658: Actually return result in race condition #29202
  • [3.9] bpo-37658: Actually return result in race condition (GH-29202) #29832
  • [3.10] bpo-37658: Actually return result in race condition (GH-29202) #29831
  • Files
  • example.py: script that can reproduce the problem
  • ssl_circular_refs.png
  • 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=Noneclosed_at=Nonecreated_at=<Date2019-07-23.12:16:17.363>labels= ['expert-asyncio', '3.7', 'performance'] title='In some cases asyncio.wait_for can lead to socket leak.'updated_at=<Date2022-03-11.17:35:41.865>user='https://bugs.python.org/NikitaIlyasov'

    bugs.python.org fields:

    activity=<Date2022-03-11.17:35:41.865>actor='dreamsorcerer'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['asyncio'] creation=<Date2019-07-23.12:16:17.363>creator='Nikita Ilyasov'dependencies= [] files= ['48500', '50061'] hgrepos= [] issue_num=37658keywords= ['patch'] message_count=18.0messages= ['348328', '348329', '375937', '375942', '375947', '379542', '393566', '393567', '393584', '393586', '393687', '394249', '404998', '407248', '407252', '407373', '414797', '414925'] nosy_count=12.0nosy_names= ['ods', 'asvetlov', 'chris.jerdonek', 'Elvis.Pranskevichus', 'lukasz.langa', 'yselivanov', 'miss-islington', 'Nikita Ilyasov', 'dreamsorcerer', 'aaliddell', 'nmatravolgyi', 'kumaraditya'] pr_nums= ['21894', '21964', '21965', '21969', '26097', '29202', '29832', '29831'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='resource usage'url='https://bugs.python.org/issue37658'versions= ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      Status

      Done

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions