Skip to content

[3.14] gh-119452: Block until data is read - #142176

Closed
hugovk wants to merge 1 commit into
python:3.14from
hugovk:3.14-http-server-block-indefinitely
Closed

[3.14] gh-119452: Block until data is read#142176
hugovk wants to merge 1 commit into
python:3.14from
hugovk:3.14-http-server-block-indefinitely

Conversation

@hugovk

@hugovkhugovk commented Dec 2, 2025

Copy link
Copy Markdown
Member

@hugovk

Copy link
Copy Markdown
MemberAuthor

!buildbot AMD64 Windows11 Non-Debug

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @hugovk for commit 56a1e65 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142176%2Fmerge

The command will test the builders whose names match following regular expression: AMD64 Windows11 Non-Debug

The builders matched are:

  • AMD64 Windows11 Non-Debug PR

Comment threadLib/http/server.py
cursize = 0
data = self.rfile.read(min(nbytes, _MIN_READ_BUF_SIZE))
while (len(data) < nbytes and len(data) != cursize and
select.select([self.rfile._sock], [], [], 0)[0]):

@encukouencukouDec 2, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the current docs this should be omitted.
It might be better to document what None does: #142177

@hugovk

Copy link
Copy Markdown
MemberAuthor

Windows builds are timing out on GitHub Actions:

test_large_content_length_truncated (test.test_httpservers.CGIHTTPServerTestCase.test_large_content_length_truncated) ... Timeout (0:10:00)!

https://github.com/python/cpython/actions/runs/19851448458/job/56879004094?pr=142176

encukou added a commit to encukou/cpython that referenced this pull request Dec 2, 2025
This reads/writes data as available, making the CGI application
responsible for managing any timeouts when receiving data from
clients.
Data is read in chunks of bounded size, and passed on immediately
(except stderr, which is combined into a single message as before).
This does need 3 threads. (As does process.communicate.)
@hugovk

Copy link
Copy Markdown
MemberAuthor

Closing in favour of a revert for 3.14.1: #142184.

And we have #142181 and #142185 to consider after that.

@hugovkhugovk closed this Dec 2, 2025
@hugovk
hugovk deleted the 3.14-http-server-block-indefinitely branch December 2, 2025 11:52
Sign up for freeto 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.

3 participants

@hugovk@bedevere-bot@encukou