-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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
http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java
Outdated
Show resolved
Hide resolved
http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java
Show resolved
Hide resolved
http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java
Outdated
Show resolved
Hide resolved
* @since 4.6.0 | ||
*/ | ||
@Nullable | ||
public Http2Configuration getHttp2Configuration() { |
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.
maybe return Optional<Http2Configuration>
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.
I am matching what getWebSocketCompressionConfiguration does here
http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java
Outdated
Show resolved
Hide resolved
http-client-core/src/main/java/io/micronaut/http/client/HttpClientConfiguration.java
Outdated
Show resolved
Hide resolved
* The service HTTP/2 configuration. | ||
*/ | ||
@ConfigurationProperties(WebSocketCompressionConfiguration.PREFIX) | ||
public static class ServiceHttp2Configuration extends Http2Configuration { |
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.
does this need to be @BootstrapCompatible
?
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.
I don't know. The other subconfigs arent either
http-client/src/main/java/io/micronaut/http/client/netty/Http2PingSender.java
Show resolved
Hide resolved
|