You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andor Molnar (JIRA)" <ji...@apache.org> on 2018/07/12 10:33:00 UTC

[jira] [Commented] (ZOOKEEPER-1859) pwriter should be closed in NIOServerCnxn#checkFourLetterWord()

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541452#comment-16541452 ] 

Andor Molnar commented on ZOOKEEPER-1859:
-----------------------------------------

Hi [~yuzhihong@gmail.com]

Would you mind creating a pull request on Github to address this issue?

> pwriter should be closed in NIOServerCnxn#checkFourLetterWord()
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1859
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1859
>             Project: ZooKeeper
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>         final PrintWriter pwriter = new PrintWriter(
>                 new BufferedWriter(new SendBufferWriter()));
> ...
>         } else if (len == telnetCloseCmd) {
>             cleanupWriterSocket(null);
>             return true;
>         }
> {code}
> pwriter should be closed in case of telnetCloseCmd



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)