2014-06-10 13:37 GMT+04:00 <ma...@apache.org>: > Author: markt > Date: Tue Jun 10 09:37:39 2014 > New Revision: 1601583 > > URL: http://svn.apache.org/r1601583 > Log: > Pull up waitingRequests. > NIO2 used a ConcurrentHashMap whereas BIO and APR/native used a Queue. Switch > to ConcurrentHashMap for all since what we really want here is a Set (and > there isn't a ConcurrentHashSet implementation).
There exists method java.util.Collections.newSetFromMap(..) that converts an empty map into a Set. I'll go on with it and change the field into Set<SocketWrapper<S>>. > Modified: > tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java > tomcat/trunk/java/org/apache/tomcat/util/net/AprEndpoint.java > tomcat/trunk/java/org/apache/tomcat/util/net/JIoEndpoint.java > tomcat/trunk/java/org/apache/tomcat/util/net/Nio2Endpoint.java > > Modified: tomcat/trunk/java/org/apache/tomcat/util/net/AbstractEndpoint.java > > + protected ConcurrentHashMap<SocketWrapper<S>, SocketWrapper<S>> > waitingRequests = > + new ConcurrentHashMap<>(); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org