-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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
base: main
Are you sure you want to change the base?
Conversation
…mpleteRead`
@serhiy-storchaka could you please take a look at this PR? It's similar to #113199 |
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.
Current changes would be better than nothing, but I hope my suggestion would also fix the case of readline with an incomplete line
@vadmium please check if my last changes fix the case |
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 have only looked at the changes, not tried running them. They look worthwhile to me, although there is room for improving the tests.
Looks okay to me |
@vadmium thank you for the review! Do you think it can be merged before 3.14's betas? |
read1
andreadline
ofhttp.client.HTTPResponse
do not raiseIncompleteRead
#115997