Draft fix for the test failure.

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1029 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Simone Bordet 2009-11-06 15:10:59 +00:00
parent 3821e44760
commit 07c6830d6c
1 changed files with 7 additions and 7 deletions

View File

@ -80,20 +80,18 @@ public class RedirectListener extends HttpEventListenerWrapper
public void onRequestComplete() throws IOException
{
_requestComplete = true;
checkExchangeComplete();
super.onRequestComplete();
if (checkExchangeComplete())
super.onRequestComplete();
}
public void onResponseComplete() throws IOException
{
_responseComplete = true;
checkExchangeComplete();
super.onResponseComplete();
if (checkExchangeComplete())
super.onResponseComplete();
}
public void checkExchangeComplete() throws IOException
private boolean checkExchangeComplete() throws IOException
{
if (_redirected && _requestComplete && _responseComplete)
{
@ -108,12 +106,14 @@ public class RedirectListener extends HttpEventListenerWrapper
_exchange.setURI(_location);
_destination.resend(_exchange);
return false;
}
else
{
setDelegationResult(false);
}
}
return true;
}
public void onRetry()