Skip to content

Add sock_recv_into to AbstractEventLoop #76000

Closed

Description

@pitrou
BPO 31819
Nosy @gvanrossum, @pitrou, @vstinner, @giampaolo, @1st1
PRs
  • bpo-31819: Add AbstractEventLoop.sock_recv_into() #4051
  • 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-10-19.19:47:17.426>
    created_at = <Date 2017-10-19.17:37:49.742>
    labels = ['3.7', 'type-feature', 'library', 'expert-asyncio']
    title = 'Add sock_recv_into to AbstractEventLoop'
    updated_at = <Date 2020-08-05.00:10:19.610>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2020-08-05.00:10:19.610>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-10-19.19:47:17.426>
    closer = 'yselivanov'
    components = ['Library (Lib)', 'asyncio']
    creation = <Date 2017-10-19.17:37:49.742>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31819
    keywords = ['patch']
    message_count = 6.0
    messages = ['304623', '304629', '304639', '304640', '304641', '374761']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'pitrou', 'vstinner', 'giampaolo.rodola', 'yselivanov']
    pr_nums = ['4051']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue31819'
    versions = ['Python 3.7']

    Activity

    1. pitrou commented on Oct 19, 2017

      @pitrou
      MemberAuthor

      As sock_recv() is already exposed, it is a no-brainer to add sock_recv_into(), allowing finer buffer management when people are willing to handle a socket object.

    2. added
      3.7 (EOL)
      stdlib
      type-feature
      on Oct 19, 2017
    3. 1st1 commented on Oct 19, 2017

      @1st1
      Member

      I'm going to approve this unless there are any objections.

    4. gvanrossum commented on Oct 19, 2017

      @gvanrossum
      Member

      SGTM.

      On Oct 19, 2017 11:05 AM, "Yury Selivanov" <report@bugs.python.org> wrote:

      Yury Selivanov <yselivanov@gmail.com> added the comment:

      I'm going to approve this unless there are any objections.

      ----------
      nosy: +gvanrossum


      Python tracker <report@bugs.python.org>
      <https://bugs.python.org/issue31819\>


    5. 1st1 commented on Oct 19, 2017

      @1st1
      Member

      New changeset 525f40d by Yury Selivanov (Antoine Pitrou) in branch 'master':
      bpo-31819: Add AbstractEventLoop.sock_recv_into() (bpo-4051)
      525f40d

    6. 1st1 commented on Oct 19, 2017

      @1st1
      Member

      Merged. Thank you, Antoine!

    7. vstinner commented on Aug 3, 2020

      @vstinner
      Member

      Follow-up issue, bpo-41467: asyncio: recv_into() must not return b'' if the socket/pipe is closed.

    8. transferred this issue fromon Apr 10, 2022
    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)stdlibtopic-asynciotype-feature

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions