You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "hikin (JIRA)" <ji...@apache.org> on 2014/09/22 11:15:33 UTC

[jira] [Created] (ZOOKEEPER-2043) Too many connections,maxClientCnxns don't close

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)