Skip to content

bpo-37280: Use threadpool for reading from file in sendfile fallback mode#14076

Merged
asvetlov merged 1 commit into
python:masterfrom
asvetlov:read-in-threadpool
Jun 15, 2019
Merged

bpo-37280: Use threadpool for reading from file in sendfile fallback mode#14076
asvetlov merged 1 commit into
python:masterfrom
asvetlov:read-in-threadpool

Conversation

@asvetlov

@asvetlov asvetlov commented Jun 14, 2019

Copy link
Copy Markdown
Contributor

We do it for loop.sock_sendfile(), there is no reason to call blocking code for loop.sendfile()

https://bugs.python.org/issue37280

@bedevere-bot

Copy link
Copy Markdown

@asvetlov: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @asvetlov for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @asvetlov, I had trouble checking out the 3.8 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 0237265e8287141c40faa8719da3a2d21d511d0d 3.8

@bedevere-bot

Copy link
Copy Markdown

GH-14101 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 15, 2019
…nGH-14076)

(cherry picked from commit 0237265)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
asvetlov added a commit to asvetlov/cpython that referenced this pull request Jun 15, 2019
…ythonGH-14076)

(cherry picked from commit 0237265)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
@bedevere-bot

Copy link
Copy Markdown

GH-14102 is a backport of this pull request to the 3.8 branch.

miss-islington added a commit that referenced this pull request Jun 15, 2019
)

(cherry picked from commit 0237265)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
asvetlov added a commit that referenced this pull request Jun 15, 2019
…H-14076) (GH-14102)

(cherry picked from commit 0237265)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
@asvetlov
asvetlov deleted the read-in-threadpool branch September 12, 2019 12:42
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants