Skip to content

Fix memory leak when replacing invalid connections on multi threaded environment. #40

Open
wants to merge 1 commit into from
Commits on Oct 1, 2012
  1. @ghk

    Update source/MongoDB/Connections/Connection.cs

    ghk committed Oct 1, 2012
    make ReplaceInvalidCollection done while holding lock
    
    Without holding lock, there is race condition between threads on replacing connections, i.e. "_connection"s created but only one of them used. This creates many unclosed TCPClients.
Something went wrong with that request. Please try again.