diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-19 10:27:20 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-07-19 10:27:20 +0200 |
commit | 0b78c946dac59fd28bed8f4f19d076708b626627 (patch) | |
tree | 6db4ac1bff996013bc9dfc317f368198350c4992 /sonar-ws-client/src/main | |
parent | 5838fe7ddaf754bdb32a7c24b2108c1ea79a8436 (diff) | |
download | sonarqube-0b78c946dac59fd28bed8f4f19d076708b626627.tar.gz sonarqube-0b78c946dac59fd28bed8f4f19d076708b626627.zip |
SONAR-2002 fix timeout with HttpClient 4
Diffstat (limited to 'sonar-ws-client/src/main')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/connectors/HttpClient4Connector.java | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |