diff options
author | 2018-09-26 14:07:54 +0000 | |
---|---|---|
committer | 2018-09-26 14:07:54 +0000 | |
commit | 731714d8a00dc2129cfd8c1ca813fd810086af43 (patch) | |
tree | dbb5e60511e9d3186a5522fd1dc62186f7056634 /src | |
parent | cf8f39f36b08ee1242c6f1ea472830a9e4be49f9 (diff) | |
parent | 22eda038b6cb646d63bfaf617372fce2b5d98631 (diff) |
Merge "update code to latest"
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java b/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java index 4900f27..bfacd09 100644 --- a/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java +++ b/src/main/java/org/onap/sdc/dcae/controller/proxy/DcaeProxy.java @@ -11,6 +11,7 @@ import org.slf4j.LoggerFactory; import org.slf4j.MDC; import org.springframework.util.StringUtils; +import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.util.concurrent.TimeUnit; @@ -32,9 +33,18 @@ public class DcaeProxy extends ProxyServlet { @Override protected HttpClient newHttpClient() { SslContextFactory factory = new SslContextFactory(true); - return new HttpClient(factory); + return new HttpClient(factory); } + + @Override + protected HttpClient createHttpClient() throws ServletException { + HttpClient client = super.createHttpClient(); + client.setIdleTimeout(180000); + client.setConnectTimeout(180000); + return client; + } + @Override protected String rewriteTarget(HttpServletRequest request) { try{ |