hikin created ZOOKEEPER-2043:
--------------------------------
Summary: Too many connections,maxClientCnxns don't close
Key: ZOOKEEPER-2043
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2043
Project: ZooKeeper
Issue Type: Bug
Reporter: hikin
org.apache.zookeeper.server.NIOServerCnxn
void doIO(SelectionKey k) throws InterruptedException {
try {
if (isSocketOpen() == false) {
LOG.warn("trying to do i/o on a null socket for session:0x"
+ Long.toHexString(sessionId));
return;
}
public void close() {
if (!factory.removeCnxn(this)) {
return;
}
If the socket suddenly broken, do not have the right to clean up the
connection, this one line of code that caused a lot of links, eventually exceed
the maximum maxClientCnxns, cause the client end connections do not go up.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)