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

TSSLTransportFactory.createSSLContext() leaves files open

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Java - Library
    • 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

            roger Roger Meier
            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