You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Http2Client with native HttpClient does not enforce response timeout correctly #3068
There is a flaw in Java's interface design that makes it very easy to introduce bug where application stalls when using native HttpClient. Request timeout given applies only to point when response headers are received. Timeout does not apply to receiving body.
Easiest way to address the problem is to use async sending with orTimeout. The far more complex alternative is to create customer body handler / subscriber that is able to handle timeout correctly.
Considering that writing customer body handler is a non-trivial task and that orTimeout does address the problem, I would recommend changing feign implementation to use asyncSend. Java's internal synchronous implementation is a delegate to async call, so change to async would not change threading behaviour.
changed the title [-]Http2Client with native HttpClient does not enforce response correctly timeout[/-][+]Http2Client with native HttpClient does not enforce response timeout correctly[/+]on Oct 17, 2025
Thanks for the report. This project is community-maintained, and the maintainer won't implement fixes/features directly. If you want this to move forward, please open a pull request with automated tests that cover the change.\n\nFor bug reports, please also include (or confirm) a minimal reproduction, the affected version(s), and the full stack trace/logs.
Activity
[-]Http2Client with native HttpClient does not enforce response correctly timeout[/-][+]Http2Client with native HttpClient does not enforce response timeout correctly[/+]zkorhone commentedon May 1, 2026
Moved on to spring http interface clients
velo commentedon May 27, 2026
Thanks for the report. This project is community-maintained, and the maintainer won't implement fixes/features directly. If you want this to move forward, please open a pull request with automated tests that cover the change.\n\nFor bug reports, please also include (or confirm) a minimal reproduction, the affected version(s), and the full stack trace/logs.