Skip to content

Conversation

@R4R3D1FF
Copy link

@R4R3D1FF R4R3D1FF commented Sep 30, 2025

Adds an option for read and write timeout in the handler options, that is passed to the handler config and then to the spec. Finally, ServeHTTP function of the handler reads the timeout values from the spec and enforces them using ResponseController.

This prevents slow or malicious clients from using up resources as that specific stream for the HTTP2 connection can be closed.

Deals with the following issue
#879

@R4R3D1FF R4R3D1FF force-pushed the service-handler-timeout branch from decd22f to b865468 Compare October 3, 2025 19:03
@R4R3D1FF R4R3D1FF marked this pull request as ready for review October 3, 2025 19:05
Copy link
Contributor

@emcfarlane emcfarlane left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I will bring up with the other maintainers to discuss the usability side. For the PR we need to complete testing and documentation.

Co-authored-by: Edward McFarlane <[email protected]>
Signed-off-by: R4R3D1FF <[email protected]>
@R4R3D1FF R4R3D1FF force-pushed the service-handler-timeout branch 2 times, most recently from acb843f to 91b7827 Compare December 6, 2025 21:11
Added documentation comments in the new exported
 options

Signed-off-by: R4R3D1FF <[email protected]>
Signed-off-by: Mausam Yadav <[email protected]>
@R4R3D1FF R4R3D1FF force-pushed the service-handler-timeout branch from 91b7827 to cc784c6 Compare December 6, 2025 21:14
@R4R3D1FF
Copy link
Author

R4R3D1FF commented Dec 6, 2025

Thanks for the PR! I will bring up with the other maintainers to discuss the usability side. For the PR we need to complete testing and documentation.

Alright, do you have any ideas as to how I can test this? I think it could be done via a client that intentionally stalls the message sent to or received from the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants