proxy server timeout on continuation checks for 0 client and exchange timeout and set continuation as 'infinite'

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3405 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Jesse McConnell 2011-06-20 22:40:56 +00:00
parent ce943340dd
commit 418ebe8268
1 changed files with 9 additions and 2 deletions

View File

@ -608,8 +608,15 @@ public class ProxyServlet implements Servlet
// continuation fudge factor of 1000, underlying components
// should fail/expire first
continuation.setTimeout(ctimeout + 1000);
if ( ctimeout == 0 )
{
continuation.setTimeout(0); // ideally never times out
}
else
{
continuation.setTimeout(ctimeout + 1000);
}
customizeContinuation(continuation);
continuation.suspend(response);