Skip to content

Connection timeout the double of what is configured #4742

@oleborup

Description

@oleborup

Introduced with Jersey 2.31 the client connection timeout is the double of the configured when posting an entity.

    client.property(ClientProperties.CONNECT_TIMEOUT, 2000);
    ...
    invocationBuilder.post(null); // correct connection timeout of 2 secs
    invocationBuilder.post(Entity.json(request)); // double connection timeout of 4 secs

Small Spring Boot example project here: https://github.com/oleborup/jersey-client-connection-timeout

To reproduce

mvn test

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions