From 0b78c946dac59fd28bed8f4f19d076708b626627 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 19 Jul 2011 10:27:20 +0200 Subject: SONAR-2002 fix timeout with HttpClient 4 --- .../main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java index 471323b4fed..4044592a0ce 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java @@ -179,6 +179,7 @@ public class HttpClient4Connector extends Connector { private void initRequest(HttpRequestBase request, AbstractQuery query) { request.setHeader("Accept", "application/json"); request.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, query.getTimeoutMilliseconds()); + request.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, query.getTimeoutMilliseconds()); } static final class PreemptiveAuth implements HttpRequestInterceptor { -- cgit v1.2.3