Skip to content

Change mapping of connectionRequestTimeout to ConnPool leaseTimeout #1926

Closed
@sothawo

Description

@sothawo

(Description taken from PR#1925)

Currently the RestClients.create() method sets the underlying RequestConfig connectTimeout and connectionRequestTimeout properties to the value of the ClientConfiguration connectTimeout property.

The connectionRequestTimeout is used as the leaseTimeout parameter when calling the AbstractNIOConnPool lease method, which can lead to a "TimeoutException: Connection lease request time out" on an establised connection.

The correct behavior is to use the sockerTimeout property for the leastTimeout parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions