Hello
Thierry,
exactly all these parameters we've already tried:
getContext().getParameters().add("readTimeout", String.valueOf(this.proxyReadTimeoutMs));
getContext().getParameters().add("socketTimeout", String.valueOf(this.proxyReadTimeoutMs));
getContext().getParameters().add("socketConnectTimeoutMs", String.valueOf(this.proxyConnectTimeoutMs));
getContext().getClientDispatcher().getContext().getParameters().add("readTimeout", String.valueOf(this.proxyReadTimeoutMs));
getContext().getClientDispatcher().getContext().getParameters().add("socketTimeout", String.valueOf(this.proxyReadTimeoutMs));
getContext().getClientDispatcher().getContext().getParameters().add("socketConnectTimeoutMs", String.valueOf(this.proxyConnectTimeoutMs));
Unfortunately none of these works, the actual read timeout is hardcoded in org.restlet.engine.connector.HttpClientHelper:
public int getReadTimeout() {
return Integer.parseInt(this.getHelpedParameters().getFirstValue("readTimeout", "60000"));
}
The list of HelpedParameters is always empty, so the default value is used.
BR,
Marek