From 277ca5c06585dae9157953d72bc0b040d36262c0 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 29 Aug 2014 17:54:28 +1000 Subject: [PATCH] fixed merge --- .../server/handler/IdleTimeoutHandler.java | 54 +++++++++---------- tests/test-quickstart/pom.xml | 2 +- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/IdleTimeoutHandler.java b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/IdleTimeoutHandler.java index ccce50d8800..17d960e80c7 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/handler/IdleTimeoutHandler.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/handler/IdleTimeoutHandler.java @@ -90,35 +90,35 @@ public class IdleTimeoutHandler extends HandlerWrapper } 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 onStartAsync(AsyncEvent event) throws IOException { - @Override - public void onTimeout(AsyncEvent event) throws IOException - { - } - - @Override - public void onStartAsync(AsyncEvent event) throws IOException - { - } - - @Override - public void onError(AsyncEvent event) throws IOException - { - channel.setIdleTimeout(idle_timeout); - } - - @Override - public void onComplete(AsyncEvent event) throws IOException - { - channel.setIdleTimeout(idle_timeout); - } - }); - } - else - channel.setIdleTimeout(idle_timeout); + } + + @Override + public void onError(AsyncEvent event) throws IOException + { + channel.setIdleTimeout(idle_timeout); + } + + @Override + public void onComplete(AsyncEvent event) throws IOException + { + channel.setIdleTimeout(idle_timeout); + } + }); + } + else + channel.setIdleTimeout(idle_timeout); } } } diff --git a/tests/test-quickstart/pom.xml b/tests/test-quickstart/pom.xml index cba967c175f..7848e2deedf 100644 --- a/tests/test-quickstart/pom.xml +++ b/tests/test-quickstart/pom.xml @@ -12,7 +12,7 @@ Jetty Quick Start Test http://www.eclipse.org/jetty - ${project.groupId}.examples.quickstart + ${project.groupId}.tests.quickstart