Skip to content
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

Improvements to HTTP response handling #14673

Merged
merged 1 commit into from
Nov 27, 2024
Merged

Improvements to HTTP response handling #14673

merged 1 commit into from
Nov 27, 2024

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Nov 26, 2024

In a few places prysm makes http connections to other systems and reads all bytes before attempting to unmarshal the response. A best practice for this kind of client connection is to limit the number of bytes read to a reasonable upper bound.

What type of PR is this?

Other

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@kasey kasey requested a review from a team as a code owner November 26, 2024 21:17
@kasey kasey force-pushed the http-body-limits branch 6 times, most recently from f714a6b to 3e933b9 Compare November 26, 2024 22:54
@kasey kasey added this pull request to the merge queue Nov 27, 2024
Merged via the queue into develop with commit 1707cf3 Nov 27, 2024
15 checks passed
@kasey kasey deleted the http-body-limits branch November 27, 2024 22:36
@kasey kasey added the changelog/changed Changelog Section: Changed label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/changed Changelog Section: Changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants