mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 10:59:19 +00:00
Add timeout and idleTimeout servlet init parameters to the creation of the http client
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3391 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
f886b777e8
commit
82902b49eb
@ -204,6 +204,20 @@ public class ProxyServlet implements Servlet
|
||||
{
|
||||
client.setMaxConnectionsPerAddress(Integer.parseInt(t));
|
||||
}
|
||||
|
||||
t = config.getInitParameter("timeout");
|
||||
|
||||
if ( t != null )
|
||||
{
|
||||
client.setTimeout(Long.parseLong(t));
|
||||
}
|
||||
|
||||
t = config.getInitParameter("idleTimeout");
|
||||
|
||||
if ( t != null )
|
||||
{
|
||||
client.setIdleTimeout(Long.parseLong(t));
|
||||
}
|
||||
|
||||
client.start();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user