Ted Yu created KYLIN-1634:
-----------------------------

             Summary: Unclosed OutputStream in SSHClient#scpFileToLocal()
                 Key: KYLIN-1634
                 URL: https://issues.apache.org/jira/browse/KYLIN-1634
             Project: Kylin
          Issue Type: Bug
            Reporter: Ted Yu
            Priority: Minor


{code}
            OutputStream out = channel.getOutputStream();
...
                out.write(buf, 0, 1);
                out.flush();
            }

            session.disconnect();
        } catch (Exception e) {
            throw e;
{code}
out is not closed upon return from the method.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to