fixed merge
This commit is contained in:
parent
dacc796831
commit
277ca5c065
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue