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:
parent
3821e44760
commit
07c6830d6c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue