Skip to content

Add a new socket.sendfile() method #61752

@giampaolo

Description

@giampaolo
BPO 17552
Nosy @gvanrossum, @pitrou, @giampaolo, @tiran, @asvetlov, @4kir4, @1st1, @MojoVampire
Files
  • socket-sendfile1.patch: initial draft
  • socket-sendfile2.patch: update file offset add 'offset' parameter
  • socket-sendfile3.patch: docs, selectors module, always seek() file, use memoryview(), ssl tests
  • bench.py
  • socket-sendfile4.patch: return no. of bytes sent instead of (ok, exc); "sleep" on BlockingIOError
  • socket-sendfile5.patch: fix some issues on windows
  • socket-sendfile6.patch: get rid of "blocksize" and "use_fallback" args, add "count" arg, use fstat()
  • socket-sendfile7.patch: adds send_blocksize argument
  • 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 = 'https://github.com/giampaolo'
    closed_at = <Date 2014-06-11.02:04:53.134>
    created_at = <Date 2013-03-26.19:27:53.402>
    labels = ['type-feature', 'library']
    title = 'Add a new socket.sendfile() method'
    updated_at = <Date 2014-06-11.02:04:53.054>
    user = 'https://github.com/giampaolo'

    bugs.python.org fields:

    activity = <Date 2014-06-11.02:04:53.054>
    actor = 'giampaolo.rodola'
    assignee = 'giampaolo.rodola'
    closed = True
    closed_date = <Date 2014-06-11.02:04:53.134>
    closer = 'giampaolo.rodola'
    components = ['Library (Lib)']
    creation = <Date 2013-03-26.19:27:53.402>
    creator = 'giampaolo.rodola'
    dependencies = []
    files = ['29583', '29734', '34986', '34994', '34997', '35004', '35039', '35507']
    hgrepos = []
    issue_num = 17552
    keywords = ['3.2regression']
    message_count = 35.0
    messages = ['185292', '185294', '185295', '185303', '186305', '216915', '216968', '216973', '216975', '216979', '217015', '217058', '217080', '217081', '217082', '217090', '217099', '217104', '217120', '217121', '217128', '217143', '217144', '217156', '217165', '219926', '219927', '219928', '219929', '220173', '220191', '220195', '220202', '220220', '220226']
    nosy_count = 12.0
    nosy_names = ['gvanrossum', 'pitrou', 'giampaolo.rodola', 'christian.heimes', 'josiah.carlson', 'asvetlov', 'neologix', 'akira', 'rosslagerwall', 'python-dev', 'yselivanov', 'josh.r']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17552'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions