Skip to content

Commit

Permalink
other config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
riteshvaryani committed Jul 2, 2024
1 parent 2773cf3 commit 8bc1af9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ private void setupContext(ProxyServerConfiguration config) {
connector.setPort(config.getLocalPort());
connector.setName(config.getName());
connector.setAccepting(true);
connector.setIdleTimeout(150000L);
connector.setAcceptQueueSize(1024);
this.server.addConnector(connector);

// Setup proxy handler to handle CONNECT methods
ConnectHandler proxyConnectHandler = new ConnectHandler();
proxyConnectHandler.getIdleTimeout()
this.server.setHandler(proxyConnectHandler);

if (proxyHandler != null) {
Expand All @@ -102,6 +105,7 @@ private void setupContext(ProxyServerConfiguration config) {
proxyServlet.setInitParameter("prefix", config.getPrefix());
proxyServlet.setInitParameter("trustAll", config.getTrustAll());
proxyServlet.setInitParameter("preserveHost", config.getPreserveHost());
proxyServlet.setInitParameter("timeout", "120000");

// Setup proxy servlet
this.context =
Expand Down

0 comments on commit 8bc1af9

Please sign in to comment.