Skip to content

Support request timeout for Java HTTP Client #1631

@kwin

Description

@kwin

Affected version

2.0.11

Bug description

Although Java HTTP client currently lacks proper support for request timeouts (https://bugs.openjdk.org/browse/JDK-8208693), this is provided through https://mizosoft.github.io/methanol/api/latest/methanol/com/github/mizosoft/methanol/Methanol.BaseBuilder.html#requestTimeout(java.time.Duration). As Methanol is already used in the context of #1620 it is easy to also implement request timeout now.

There is currently some WIP PR which adds that feature to open JDK: openjdk/jdk#27469

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions