Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1634

Unclosed OutputStream in SSHClient#scpFileToLocal()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • v1.5.2
    • None
    • None

    Description

                  OutputStream out = channel.getOutputStream();
      ...
                      out.write(buf, 0, 1);
                      out.flush();
                  }
      
                  session.disconnect();
              } catch (Exception e) {
                  throw e;
      

      out is not closed upon return from the method.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: