Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2293

TSSLTransportFactory.createSSLContext() leaves files open

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Java - Library
    • Labels:
    • Environment:

      Windows 7, Java 7

      Description

      Even though my thrift server is shutdown and (perhaps?) GC'ed,
      the keystore file used is still locked by the VM.

      In TSSLTransportFactory.createSSLContext() i see
      ks.load(new FileInputStream(params.keyStore), params.keyPass.toCharArray());

      The FileInputStreams are never closed, which they should.
      Or is this done deliberately?

        Attachments

          Activity

            People

            • Assignee:
              roger Roger Meier
              Reporter:
              andy.sjoholm@gmail.com Andreas Sjöholm
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified