MINA SSHD
  1. MINA SSHD
  2. SSHD-132

NativeSshFile does not close RandomAccessFile on IOException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.7.0
    • Labels:
      None

      Description

      In truncate, createOutputStream and createInputStream IOExceptions thrown but the RandomAccessFile are not close.
      This causes a file handle leak.

      Patch is attached

      1. fileHandle.patch
        3 kB
        Michael Stevens

        Issue Links

          Activity

          Hide
          Michael Stevens added a comment -

          Patch against 0.5.0

          Show
          Michael Stevens added a comment - Patch against 0.5.0
          Hide
          Michael Stevens added a comment -

          This patch deals with the issues in SSHD-118 without the nasty System.out logging

          Show
          Michael Stevens added a comment - This patch deals with the issues in SSHD-118 without the nasty System.out logging
          Hide
          Guillaume Nodet added a comment -

          Fixed. Thx the the patch Michael.

          Show
          Guillaume Nodet added a comment - Fixed. Thx the the patch Michael.

            People

            • Assignee:
              Guillaume Nodet
              Reporter:
              Michael Stevens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development