You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2015/01/10 02:12:35 UTC
[jira] [Commented] (ZOOKEEPER-2105) PrintWriter left unclosed in
NIOServerCnxn#checkFourLetterWord
[ https://issues.apache.org/jira/browse/ZOOKEEPER-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14272192#comment-14272192 ]
Ted Yu commented on ZOOKEEPER-2105:
-----------------------------------
NettyServerCnxn#checkFourLetterWord() has similar issue.
> PrintWriter left unclosed in NIOServerCnxn#checkFourLetterWord
> --------------------------------------------------------------
>
> Key: ZOOKEEPER-2105
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2105
> Project: ZooKeeper
> Issue Type: Bug
> Reporter: Ted Yu
> Priority: Minor
>
> {code}
> final PrintWriter pwriter = new PrintWriter(
> new BufferedWriter(new SendBufferWriter()));
> {code}
> pwriter should be closed upon return from the method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)