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
|
||||
+ 319334 Concurrent, sharable ResourceCache
|
||||
+ 319370 WebAppClassLoader.Context
|
||||
+ JETTY-1249 Apply max idle time
|
||||
+ Added ignore to Logger interface
|
||||
|
||||
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.nio.SelectorManager.SelectSet;
|
||||
import org.eclipse.jetty.util.log.Log;
|
||||
import org.eclipse.jetty.util.thread.Timeout;
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
|
|
|
@ -421,7 +421,9 @@ public class ProxyHandler extends HandlerWrapper
|
|||
@Override
|
||||
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
|
||||
|
|
|
@ -164,6 +164,7 @@ public class SelectChannelConnector extends AbstractNIOConnector
|
|||
SelectChannelEndPoint cep = ((SelectChannelEndPoint)endpoint);
|
||||
cep.cancelIdle();
|
||||
request.setTimeStamp(cep.getSelectSet().getNow());
|
||||
endpoint.setMaxIdleTime(_maxIdleTime);
|
||||
super.customize(endpoint, request);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue