Description
Given the following client creation:
Client client = ClientBuilder.newBuilder()
.property("http.connection.timeout", 1000)
.property("http.receive.timeout", 5000)
.build();
the timeout properties will be disregarded since they will be autoboxed as Integer, and the implementation expects Long only.
See org.apache.cxf.jaxrs.client.spec.ClientImpl.WebTargetImpl#setConnectionProperties.
Workaround:
Client client = ClientBuilder.newBuilder()
.property("http.connection.timeout", 1000L)
.property("http.receive.timeout", 5000L)
.build();