fixed merge

This commit is contained in:
Greg Wilkins 2014-08-29 17:54:28 +10:00
parent dacc796831
commit 277ca5c065
2 changed files with 28 additions and 28 deletions

View File

@ -90,35 +90,35 @@ public class IdleTimeoutHandler extends HandlerWrapper
} }
finally finally
{ {
if (_applyToAsync && request.isAsyncStarted()) if (_applyToAsync && request.isAsyncStarted())
{
request.getAsyncContext().addListener(new AsyncListener()
{ {
request.getAsyncContext().addListener(new AsyncListener() @Override
public void onTimeout(AsyncEvent event) throws IOException
{ {
@Override }
public void onTimeout(AsyncEvent event) throws IOException
{
}
@Override @Override
public void onStartAsync(AsyncEvent event) throws IOException public void onStartAsync(AsyncEvent event) throws IOException
{ {
} }
@Override @Override
public void onError(AsyncEvent event) throws IOException public void onError(AsyncEvent event) throws IOException
{ {
channel.setIdleTimeout(idle_timeout); channel.setIdleTimeout(idle_timeout);
} }
@Override @Override
public void onComplete(AsyncEvent event) throws IOException public void onComplete(AsyncEvent event) throws IOException
{ {
channel.setIdleTimeout(idle_timeout); channel.setIdleTimeout(idle_timeout);
} }
}); });
} }
else else
channel.setIdleTimeout(idle_timeout); channel.setIdleTimeout(idle_timeout);
} }
} }
} }

View File

@ -12,7 +12,7 @@
<description>Jetty Quick Start Test</description> <description>Jetty Quick Start Test</description>
<url>http://www.eclipse.org/jetty</url> <url>http://www.eclipse.org/jetty</url>
<properties> <properties>
<bundle-symbolic-name>${project.groupId}.examples.quickstart</bundle-symbolic-name> <bundle-symbolic-name>${project.groupId}.tests.quickstart</bundle-symbolic-name>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>