https://issues.apache.org/bugzilla/show_bug.cgi?id=51641
Bug #: 51641
Summary: Http11NioProcessor not correct release
Product: Tomcat 7
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Connectors
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
org.apache.coyote.http11.Http11NioProtocol.Http11ConnectionHandler
code segment:
==================================
@Override
public void release(SocketWrapper<NioChannel> socket) {
Http11NioProcessor processor = connections.remove(socket);
if (processor != null) {
processor.recycle();
recycledProcessors.offer(processor);
}
}
==================================
should be:
==================================
@Override
public void release(SocketWrapper<NioChannel> socket) {
Http11NioProcessor processor =
connections.remove(socket.getSocket());
if (processor != null) {
processor.recycle();
recycledProcessors.offer(processor);
}
}
==================================
type of connections is ConcurrentHashMap<NioChannel, Http11NioProcessor> ,
not ConcurrentHashMap<SocketWrapper<NioChannel>, Http11NioProcessor>.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]