zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-1859) pwriter should be closed in NIOServerCnxn#checkFourLetterWord()
Date Sun, 18 Feb 2018 05:21:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu updated ZOOKEEPER-1859:
------------------------------
    Description: 
{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

  was:
{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


> 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)

Mime
View raw message