Explicitly setting the EndPoint idle timeout in case

HttpClient.idleTimeout has changed after start().
This commit is contained in:
Simone Bordet 2016-05-25 18:21:15 +02:00
parent 6bf3607444
commit f6098497c0
1 changed files with 2 additions and 0 deletions

View File

@ -134,6 +134,8 @@ public class HttpClientTransportOverHTTP2 extends ContainerLifeCycle implements
@Override
public org.eclipse.jetty.io.Connection newConnection(EndPoint endPoint, Map<String, Object> context) throws IOException
{
endPoint.setIdleTimeout(httpClient.getIdleTimeout());
ClientConnectionFactory factory = connectionFactory;
HttpDestinationOverHTTP2 destination = (HttpDestinationOverHTTP2)context.get(HTTP_DESTINATION_CONTEXT_KEY);
ProxyConfiguration.Proxy proxy = destination.getProxy();