[
https://issues.apache.org/jira/browse/ZOOKEEPER-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931408#comment-16931408
]
yeshuangshuang commented on ZOOKEEPER-2043:
-------------------------------------------
Do you have sovled this issues? I have meeted
> 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
> Priority: Major
>
> 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
(v8.3.2#803003)