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 client timeout handling #10983

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Improvements to HTTP client timeout handling #10983

merged 3 commits into from
Jul 19, 2024

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Jul 16, 2024

  • Introduce new config properties to automatically send HTTP/2 pings on idle connections
  • Introduce a new request-timeout property for the high-level timeout
  • Remove ResettableReadTimeoutHandler now that it's upstream
  • Adjust documentation of read-idle-timeout to match actual behavior (does not apply to streaming requests), add note to rename in 5.0
  • Add note to event loop executor properties

- Introduce new config properties to automatically send HTTP/2 pings on idle connections
- Introduce a new request-timeout property for the high-level timeout
- Remove ResettableReadTimeoutHandler now that it's upstream
- Adjust documentation of read-idle-timeout to match actual behavior (does not apply to streaming requests), add note to rename in 5.0
- Add note to event loop executor properties
@yawkat yawkat added the type: improvement A minor improvement to an existing feature label Jul 16, 2024
@yawkat yawkat added this to the 4.6.0 milestone Jul 16, 2024
@yawkat yawkat requested review from graemerocher and dstepanov July 16, 2024 11:44
* @since 4.6.0
*/
@Nullable
public Http2Configuration getHttp2Configuration() {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe return Optional<Http2Configuration>

Copy link
Member Author

Choose a reason for hiding this comment

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

I am matching what getWebSocketCompressionConfiguration does here

* The service HTTP/2 configuration.
*/
@ConfigurationProperties(WebSocketCompressionConfiguration.PREFIX)
public static class ServiceHttp2Configuration extends Http2Configuration {
Copy link
Contributor

Choose a reason for hiding this comment

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

does this need to be @BootstrapCompatible?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know. The other subconfigs arent either

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@graemerocher graemerocher requested a review from dstepanov July 19, 2024 13:45
@graemerocher graemerocher merged commit 573794c into 4.6.x Jul 19, 2024
14 of 15 checks passed
@graemerocher graemerocher deleted the client-ping branch July 19, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants