JETTY-1249 Apply max idle time
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2107 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
aa9df8b65d
commit
7540debfe7
|
@ -1,6 +1,7 @@
|
||||||
jetty-7.2-SNAPSHOT
|
jetty-7.2-SNAPSHOT
|
||||||
+ 319334 Concurrent, sharable ResourceCache
|
+ 319334 Concurrent, sharable ResourceCache
|
||||||
+ 319370 WebAppClassLoader.Context
|
+ 319370 WebAppClassLoader.Context
|
||||||
|
+ JETTY-1249 Apply max idle time
|
||||||
+ Added ignore to Logger interface
|
+ Added ignore to Logger interface
|
||||||
|
|
||||||
jetty-7.1.5.v20100705
|
jetty-7.1.5.v20100705
|
||||||
|
|
|
@ -26,7 +26,6 @@ import org.eclipse.jetty.io.Connection;
|
||||||
import org.eclipse.jetty.io.EofException;
|
import org.eclipse.jetty.io.EofException;
|
||||||
import org.eclipse.jetty.io.nio.SelectorManager.SelectSet;
|
import org.eclipse.jetty.io.nio.SelectorManager.SelectSet;
|
||||||
import org.eclipse.jetty.util.log.Log;
|
import org.eclipse.jetty.util.log.Log;
|
||||||
import org.eclipse.jetty.util.thread.Timeout;
|
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -421,7 +421,9 @@ public class ProxyHandler extends HandlerWrapper
|
||||||
@Override
|
@Override
|
||||||
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey selectionKey) throws IOException
|
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, SelectSet selectSet, SelectionKey selectionKey) throws IOException
|
||||||
{
|
{
|
||||||
return new SelectChannelEndPoint(channel, selectSet, selectionKey);
|
SelectChannelEndPoint endp = new SelectChannelEndPoint(channel, selectSet, selectionKey);
|
||||||
|
// TODO endp.setMaxIdleTime(_writeTimeout);
|
||||||
|
return endp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -164,6 +164,7 @@ public class SelectChannelConnector extends AbstractNIOConnector
|
||||||
SelectChannelEndPoint cep = ((SelectChannelEndPoint)endpoint);
|
SelectChannelEndPoint cep = ((SelectChannelEndPoint)endpoint);
|
||||||
cep.cancelIdle();
|
cep.cancelIdle();
|
||||||
request.setTimeStamp(cep.getSelectSet().getNow());
|
request.setTimeStamp(cep.getSelectSet().getNow());
|
||||||
|
endpoint.setMaxIdleTime(_maxIdleTime);
|
||||||
super.customize(endpoint, request);
|
super.customize(endpoint, request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue