Please sign in to comment.
Fix JRUBY-6607, JRUBY-6498
We did not have a finally block to ensure that unsuccessful connections were properly closed. Timeout errors would cause us to leave the partially-initialized connection dangling, and the JVM does not clean up socket connections on GC. Adding a finally block and success flag appears to have tidied up lingering sockets.
- Loading branch information...
Showing with 10 additions and 4 deletions.