Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-36050: optimize HTTPResponse.read()#12698

Merged
methane merged 1 commit into
python:masterpython/cpython:masterfrom
methane:bpo36050-httpclientmethane/cpython:bpo36050-httpclientCopy head branch name to clipboard
Apr 6, 2019
Merged

bpo-36050: optimize HTTPResponse.read()#12698
methane merged 1 commit into
python:masterpython/cpython:masterfrom
methane:bpo36050-httpclientmethane/cpython:bpo36050-httpclientCopy head branch name to clipboard

Conversation

@methane

@methane methane commented Apr 5, 2019

Copy link
Copy Markdown
Member
  • No need to split read
  • No need to partial read caused by EINTR

https://bugs.python.org/issue36050

* No need to chunking for now.
* No need to partial read caused by EINTR for now.
@vadmium

vadmium commented Apr 6, 2019

Copy link
Copy Markdown
Member

This looks good to me, Inada.

@methane methane merged commit d6bf6f2 into python:master Apr 6, 2019
@methane methane deleted the bpo36050-httpclient branch April 11, 2019 08:28
@admackin

Copy link
Copy Markdown

FYI: this change has caused a regression in HTTP response under SSL resulting in inability to read files > 2 GiB over SSL: https://bugs.python.org/issue42853 .

Is there some reason we can't move back to eg 1GB chunks in MAXAMOUNT as a sane middle ground instead of 1MiB (old) or infinite (new)?

methane added a commit to methane/cpython that referenced this pull request Jul 28, 2021
ambv pushed a commit that referenced this pull request Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance or resource usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.