You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2021/06/03 13:47:14 UTC

[GitHub] [tinkerpop] FlorianHockmann opened a new pull request #1425: TINKERPOP-2358 Stop leaking connections on Dispose in Gremlin.NET driver

FlorianHockmann opened a new pull request #1425:
URL: https://github.com/apache/tinkerpop/pull/1425


   https://issues.apache.org/jira/browse/TINKERPOP-2358
   
   If the `ConnectionPool` was disposed while it was in parallel creating new connections (e.g., to replace closed connections), those
   connections could be leaked. `Dispose()` could not dispose them yet as they were not completely established so they could be added to the pool.
   
   We now check after creating new connections whether the pool has been disposed in the meantime and then dispose these connections directly again.
   
   In addition to that, the pool now also has a `CancellationTokenSource` which allows us to cancel all active creations of new connections in `Dispose()`. So we don't have to wait until they are created only so we can then dispose them if we can already cancel the connection establishment.
   
   VOTE +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [tinkerpop] FlorianHockmann merged pull request #1425: TINKERPOP-2358 Stop leaking connections on Dispose in Gremlin.NET driver

Posted by GitBox <gi...@apache.org>.
FlorianHockmann merged pull request #1425:
URL: https://github.com/apache/tinkerpop/pull/1425


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org