Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Http2Client with native HttpClient does not enforce response timeout correctly

Open
#3,068 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@goutamadwant is already working on this.

Since Jul 1, 2026.

  • #3462 by @goutamadwant — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java
Domain
api, backend

Research direction

Start at the Http2Client implementation and review how the native HttpClient applies its request timeout, then compare the behavior with JDK-8208693. The change is complete when timeouts also cover receiving the response body without changing the expected threading behavior; add or update a regression test if the surrounding implementation provides one.

Written by the indexing model from the issue text.

Description

bug

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.

Official jdk issue: https://bugs.openjdk.org/browse/JDK-8208693

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.

Dominant language
Java
Stars
9.8k
Forks
2k
Avg merge
12h 8m
Merged PRs (30d)
40

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenFeign/feign

All issues in OpenFeign/feign

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.