You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running with JRuby and configured with a Puma::MiniSSL::Context with a keystore file path MiniSSL will open 2 filehandles to the keystore file on every SSL REST request. These filehandles do not get closed until a subsequent Java garbage collection occurs.
Expected behavior
Ideally MiniSSL should only open/read the keystore file once, not on each https request. A simpler fix is just to properly close the 2 FileInputStream objects after use.
Describe the bug
When running with JRuby and configured with a Puma::MiniSSL::Context with a keystore file path MiniSSL will open 2 filehandles to the keystore file on every SSL REST request. These filehandles do not get closed until a subsequent Java garbage collection occurs.
Expected behavior
Ideally MiniSSL should only open/read the keystore file once, not on each https request. A simpler fix is just to properly close the 2 FileInputStream objects after use.
puma/ext/puma_http11/org/jruby/puma/MiniSSL.java
Line 148 in 477479a
puma/ext/puma_http11/org/jruby/puma/MiniSSL.java
Line 149 in 477479a
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: