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

Unclosed OutputStream in SSHClient#scpFileToLocal()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.5.2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: