protected AjpProtocol proto;
protected AtomicLong registerCount = new AtomicLong(0);
protected RequestGroupInfo global = new RequestGroupInfo();
- protected ConcurrentHashMap<SocketWrapper, AjpProcessor> connections =
- new ConcurrentHashMap<SocketWrapper, AjpProcessor>();
+ protected ConcurrentHashMap<SocketWrapper<Socket>, AjpProcessor> connections =
+ new ConcurrentHashMap<SocketWrapper<Socket>, AjpProcessor>();
protected ConcurrentLinkedQueue<AjpProcessor> recycledProcessors =
new ConcurrentLinkedQueue<AjpProcessor>() {
import org.apache.juli.logging.Log;
import org.apache.tomcat.util.modeler.Registry;
import org.apache.tomcat.util.net.JIoEndpoint;
-import org.apache.tomcat.util.net.NioChannel;
import org.apache.tomcat.util.net.SSLImplementation;
import org.apache.tomcat.util.net.ServerSocketFactory;
import org.apache.tomcat.util.net.SocketStatus;
protected Http11Protocol proto;
protected AtomicLong registerCount = new AtomicLong(0);
protected RequestGroupInfo global = new RequestGroupInfo();
- protected ConcurrentHashMap<SocketWrapper, Http11Processor> connections =
- new ConcurrentHashMap<SocketWrapper, Http11Processor>();
+ protected ConcurrentHashMap<SocketWrapper<Socket>, Http11Processor> connections =
+ new ConcurrentHashMap<SocketWrapper<Socket>, Http11Processor>();
protected ConcurrentLinkedQueue<Http11Processor> recycledProcessors =
new ConcurrentLinkedQueue<Http11Processor>() {
// Ignore
}
long now = System.currentTimeMillis();
- Iterator<SocketWrapper> sockets = waitingRequests.iterator();
+ Iterator<SocketWrapper<Socket>> sockets =
+ waitingRequests.iterator();
while (sockets.hasNext()) {
- SocketWrapper socket = sockets.next();
+ SocketWrapper<Socket> socket = sockets.next();
long access = socket.getLastAccess();
if ((now-access)>socket.getTimeout()) {
processSocket(socket,SocketStatus.TIMEOUT);
return true;
}
- protected ConcurrentLinkedQueue<SocketWrapper> waitingRequests = new ConcurrentLinkedQueue<SocketWrapper>();
+ protected ConcurrentLinkedQueue<SocketWrapper<Socket>> waitingRequests =
+ new ConcurrentLinkedQueue<SocketWrapper<Socket>>();
private static class PrivilegedSetTccl
implements PrivilegedAction<Void> {