-
-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support zerocopy send #1210
Closed
Closed
Support zerocopy send #1210
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
a1538b8
Support zerocopy send with httptools
abersheeran 8d9f1c4
Add zero copy send in docs
abersheeran 0eec27b
Wait process terminate
abersheeran 6bac4ba
Fixed unclosed file
abersheeran 8ddc937
Fixed offset, count and chunked_encoding mode
abersheeran c3ede54
Only test in platform that has sendfile
abersheeran c778541
Delete additional dependancy
abersheeran c243a45
Fixed hanging error
abersheeran 1021a04
Complete
abersheeran 8d50e9f
Wait flow.drain() before sendfile
abersheeran c61c4a7
Use loop.sendfile replace os.sendfile
abersheeran 1f457b9
Fixed python version judge
abersheeran 8d40c26
Skip test_sendfile in python3.6
abersheeran fc76503
Fixed flake8 F401
abersheeran cf59224
Fixed skip test
abersheeran 3c13068
Fixed skip test condition
abersheeran 3782b90
Fixed LF in response with windows
abersheeran 7f6c09a
use bytes replace str
abersheeran d8f004e
Add test_sendfile skip condition
abersheeran 9eb5a12
Add # pragma: no cover
abersheeran 7877338
Update docs
abersheeran ddb3e58
fixed HEAD
abersheeran 9971c6b
add uvloop issue in docs
abersheeran 557faa0
Merge branch 'encode:master' into zerocopy-send
abersheeran 6bb272b
Merge branch 'master' of https://github.com/encode/uvicorn into zeroc…
abersheeran 6a8e53d
lint
abersheeran de68433
In Python3.7, a litter code can't be cover
abersheeran 373b19e
Just for run actions
abersheeran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really comfortable with the fact that this'll change the behaviour throughout, regardless of if
http.response.zerocopysend
is actually being used or not for any given request/response.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this option is not configured, the headers may be sent after the body is sent.