414235 - RequestLogHandler configured on a context fails to handle forwarded requests

This commit is contained in:
Jan Bartel 2013-08-05 12:32:21 +10:00
parent 79ac8ad22d
commit f5fb412eba
2 changed files with 21 additions and 18 deletions

View File

@ -69,25 +69,28 @@ public class RequestLogHandler extends HandlerWrapper
}
finally
{
if (continuation.isAsync())
if (_requestLog != null && baseRequest.getDispatcherType().equals(DispatcherType.REQUEST))
{
if (continuation.isInitial())
continuation.addContinuationListener(new ContinuationListener()
{
public void onTimeout(Continuation continuation)
if (continuation.isAsync())
{
if (continuation.isInitial())
continuation.addContinuationListener(new ContinuationListener()
{
}
public void onTimeout(Continuation continuation)
{
public void onComplete(Continuation continuation)
{
_requestLog.log(baseRequest, (Response)response);
}
});
}
public void onComplete(Continuation continuation)
{
_requestLog.log(baseRequest, (Response)response);
}
});
}
else
_requestLog.log(baseRequest, (Response)response);
}
else
_requestLog.log(baseRequest, (Response)response);
}
}

View File

@ -99,7 +99,7 @@
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.5.2-SNAPSHOT</version>
<version>${project.version}</version>
<configuration>
<stopPort>8087</stopPort>
<stopKey>foo</stopKey>