-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-115997: Make HTTPResponse.read1
and readline
raise IncompleteRead
#115998
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
Open
illia-v
wants to merge
13
commits into
python:main
Choose a base branch
from
illia-v:gh-115997
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9878730
gh-115997: Make `HTTPResponse.read1` and `readline` raise `Incomplete…
illia-v 9f8f278
Fix the new tests
illia-v d1cf02f
Merge branch 'main' into gh-115997
illia-v e87b120
Merge branch 'main' into gh-115997
illia-v 1e7b633
Merge branch 'main' into gh-115997
illia-v 74f3f9f
Merge remote-tracking branch 'illia-v/gh-115997' into gh-115997
illia-v 33f7d77
Do not set `expected` to new `IncompleteRead`
illia-v 26b43e1
Handle a case with a not reached newline
illia-v 646bb31
Merge branch 'main' into gh-115997
illia-v 99c1aab
Merge branch 'main' into gh-115997
illia-v 0b6c929
Refactor `test_readline_incomplete_read_with_incomplete_line`
illia-v 0920750
Merge branch 'main' into gh-115997
illia-v f0fbf68
Merge branch 'main' into gh-115997
illia-v 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 hidden or 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 hidden or 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
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Library/2024-02-27-20-56-44.gh-issue-115997.LqLP4V.rst
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Make ``http.client.HTTPResponse.read1`` and | ||
``http.client.HTTPResponse.readline`` raise :exc:`http.client.IncompleteRead` | ||
instead of returning zero bytes if a connection is closed before an expected | ||
number of bytes has been read. Also, ``http.client.HTTPResponse.readline`` | ||
raises when an expected newline has not been reached. Patch by Illia Volochii. |
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.
Uh oh!
There was an error while loading. Please reload this page.