Skip to content

Implement loop.sendfile #76803

Closed
Closed

Description

@asvetlov
BPO 32622
Nosy @vstinner, @giampaolo, @asvetlov, @1st1, @miss-islington
PRs
  • bpo-32622: Implement loop.sendfile() #5271
  • bpo-32622: Enforce sendfile fallback policy for FALLBACK transports #5364
  • bpo-32622: Fix tests if Python compiled without SSL #5367
  • bpo-32622: Fix AbstractEventLoop.sendfile signature in documentation. #5368
  • bpo-32622: Normalize ENOTCONN to ConnectionError on macOS #5369
  • bpo-32622: Native sendfile on windows #5565
  • [3.7] bpo-32622: Native sendfile on windows (GH-5565) #5890
  • bpo-33353: test_asyncio uses smaller sendfile data #7083
  • [3.7] bpo-33353: test_asyncio uses smaller sendfile data (GH-7083) #7084
  • bpo-33353: test_asyncio set SO_SNDBUF after connect #7086
  • bpo-35682: Fix _ProactorBasePipeTransport._force_close() #11462
  • [3.7] bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462) #11463
  • 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 2018-05-29.15:15:47.114>
    created_at = <Date 2018-01-22.15:21:57.962>
    labels = ['type-feature', '3.7', 'expert-asyncio']
    title = 'Implement loop.sendfile'
    updated_at = <Date 2019-01-08.02:15:28.412>
    user = 'https://github.com/asvetlov'

    bugs.python.org fields:

    activity = <Date 2019-01-08.02:15:28.412>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-29.15:15:47.114>
    closer = 'yselivanov'
    components = ['asyncio']
    creation = <Date 2018-01-22.15:21:57.962>
    creator = 'asvetlov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32622
    keywords = ['patch']
    message_count = 19.0
    messages = ['310880', '310887', '310891', '310892', '310893', '310896', '310897', '311105', '311108', '311114', '311123', '312820', '312822', '317471', '317484', '317490', '318043', '333196', '333201']
    nosy_count = 5.0
    nosy_names = ['vstinner', 'giampaolo.rodola', 'asvetlov', 'yselivanov', 'miss-islington']
    pr_nums = ['5271', '5364', '5367', '5368', '5369', '5565', '5890', '7083', '7084', '7086', '11462', '11463']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32622'
    versions = ['Python 3.7']

    Activity

    1. asvetlov commented on Jan 27, 2018

      @asvetlov
      ContributorAuthor

      New changeset 7c68407 by Andrew Svetlov in branch 'master':
      bpo-32622: Implement loop.sendfile() (bpo-5271)
      7c68407

    2. 1st1 commented on Jan 27, 2018

      @1st1
      Member

      New changeset b1a6ac4 by Yury Selivanov in branch 'master':
      bpo-32622: Enforce sendfile fallback policy for FALLBACK transports (bpo-5364)
      b1a6ac4

    3. vstinner commented on Jan 27, 2018

      @vstinner
      Member

      s390x Debian 3.x buildbot failed:
      http://buildbot.python.org/all/#/builders/13/builds/601

      Exmaple:

      ======================================================================
      ERROR: test_sendfile_ssl_pre_and_post_data (test.test_asyncio.test_events.SelectEventLoopTests)
      ----------------------------------------------------------------------

      Traceback (most recent call last):
        File "/home/dje/cpython-buildarea/3.x.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 2277, in test_sendfile_ssl_pre_and_post_data
          srv_proto, cli_proto = self.prepare(is_ssl=True)
        File "/home/dje/cpython-buildarea/3.x.edelsohn-debian-z/build/Lib/test/test_asyncio/test_events.py", line 2136, in prepare
          srv_ctx = test_utils.simple_server_sslcontext()
        File "/home/dje/cpython-buildarea/3.x.edelsohn-debian-z/build/Lib/test/test_asyncio/utils.py", line 73, in simple_server_sslcontext
          server_context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
      AttributeError: 'NoneType' object has no attribute 'SSLContext'
    4. 1st1 commented on Jan 27, 2018

      @1st1
      Member

      AttributeError: 'NoneType' object has no attribute 'SSLContext'

      We've just pushed a fix for this.

    5. 1st1 commented on Jan 27, 2018

      @1st1
      Member

      New changeset ee72ac0 by Yury Selivanov (Elvis Pranskevichus) in branch 'master':
      bpo-32622: Fix AbstractEventLoop.sendfile signature in documentation. (GH-5368)
      ee72ac0

    6. 1st1 commented on Jan 27, 2018

      @1st1
      Member

      New changeset 2a2247c by Yury Selivanov in branch 'master':
      bpo-32622: Normalize ENOTCONN to ConnectionError on macOS (GH-5369)
      2a2247c

    7. 1st1 commented on Jan 27, 2018

      @1st1
      Member

      I think we've fixed everything. Closing this for now, Victor please reopen if buildbots misbehave.

    8. vstinner commented on Jan 29, 2018

      @vstinner
      Member

      New asyncio sendfile tests fail on many buildbots. See:
      https://bugs.python.org/issue32645#msg311101

    9. asvetlov commented on Jan 29, 2018

      @asvetlov
      ContributorAuthor

      I pretty sure it's fixed by 0f54e00e963

    10. vstinner commented on Jan 29, 2018

      @vstinner
      Member

      test_sendfile() hangs on AMD64 FreeBSD 10.x Shared 3.x buildbot: bpo-32708.

    11. vstinner commented on Jan 29, 2018

      @vstinner
      Member

      ProactorEventLoopTests.test_sendfile_close_peer_in_middle_of_receiving() leaks a reference on Windows: bpo-32710.

    12. asvetlov commented on Feb 25, 2018

      @asvetlov
      ContributorAuthor

      New changeset a19fb3c by Andrew Svetlov in branch 'master':
      bpo-32622: Native sendfile on windows (bpo-5565)
      a19fb3c

    13. miss-islington commented on Feb 25, 2018

      @miss-islington
      Contributor

      New changeset 632c1cb by Miss Islington (bot) in branch '3.7':
      bpo-32622: Native sendfile on windows (GH-5565)
      632c1cb

    14. vstinner commented on May 23, 2018

      @vstinner
      Member

      New changeset 2932755 by Victor Stinner in branch 'master':
      bpo-33353: test_asyncio uses smaller sendfile data (bpo-7083)
      2932755

    15. vstinner commented on May 24, 2018

      @vstinner
      Member

      New changeset b97de3d by Victor Stinner in branch 'master':
      bpo-33353: test_asyncio set SO_SNDBUF after connect (GH-7086)
      b97de3d

    16. vstinner commented on May 24, 2018

      @vstinner
      Member

      New changeset fa24c1c by Victor Stinner in branch '3.7':
      [3.7] bpo-33353: Fix test_asyncio on FreeBSD (GH-7087)
      fa24c1c

    17. 1st1 commented on May 29, 2018

      @1st1
      Member

      Closing this issue. Open new ones to track regressions/bugs.

    18. vstinner commented on Jan 8, 2019

      @vstinner
      Member

      New changeset 80fda71 by Victor Stinner in branch 'master':
      bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)
      80fda71

    19. miss-islington commented on Jan 8, 2019

      @miss-islington
      Contributor

      New changeset 88bd26a by Miss Islington (bot) in branch '3.7':
      bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)
      88bd26a

    20. 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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions