Repository navigation
fix(libSceHttp2): probe guest buffers in sceHttp2ReadData and sceHttp2SendRequest #1566
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
Thimo188
wants to merge
11
commits into
main
Choose a base branch
from
upstream-pr/27624
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
11 commits
Select commit
Hold shift + click to select a range
5118390
test(libSceHttp2): pin guest-buffer contract for sceHttp2ReadData and…
74a8756
fix(libSceHttp2): probe guest buffers in sceHttp2ReadData and sceHttp…
362e065
Merge main into fix/libSceHttp2-guest-transport-probes
64ff03f
test(libSceHttp2): pin byte count return when a staged HTTP/1 read st…
49d6388
fix(libSceHttp2): return bytes already staged to the guest when a lat…
8add415
docs(libSceHttp2): record the stalled staged-read byte count in the d…
1ed4912
fix(libSceHttp2): retain HTTP1 read failures after partial data
malekaifa d893a5b
fix(libSceHttp2): retain HTTP1 read failures after partial data
bd20685
test(libSceHttp2): accept short first read in chunked timeout regression
fbf9b89
fix(libSceHttp2): probe guest upload buffers before allocating the body
c2fece8
test(libSceHttp2): control the staging read in the one-call regressions
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
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
Oops, something went wrong.
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.
Stop the staged HTTP/1 read when the response ends.
When the last body bytes fill a 16384-byte staging read,
ReadHttp1setsended. The loop still runs while the caller buffer has room (total < limit). The next call clamps its size to zero becauseremainingis zero. If no bytes are buffered, that call makes a zero-length receive. A peer that keeps the connection open can make that receive wait until the receive timeout. The timeout is then saved, so the nextsceHttp2ReadDatareturns the error instead of EOF. A peer that closes the connection returns zero at once and avoids the wait. The merge-base implementation returned after one read.Add the
endedcheck to the loop condition. This stops the loop once the response ends and leaves unfinished responses unchanged.Suggested fix
Committable suggestion