0

I've read that the connection pool of the C++ driver doesn't work with authenticated connections (article from end of 2013). Is this (still) true?

fgalan
  • 11,732
  • 9
  • 46
  • 89
kzangeli
  • 403
  • 2
  • 8
  • If nobody knows the answer to this question, maybe is a matter of using one of the examples in the article, trying to connect to a MongoDB configured with authentication using that ScopedDbConnection object and see if it works. – fgalan May 18 '15 at 21:43

1 Answers1

0

Looking the documentation regarding the new C++ driver (named "legacy"), it seems that the relevant classes has been removed:

The ConnectionPool and ScopedDbConnection classes have been removed.

So the situation is even worse: not only the driver doesn't provide any mechanism for implement connections pools with authentication... it doesn't provide any pool connection mechanism at all :(

The rationale is detailed in this issue at MongoDB JIRA:

At this time, we have no plans to add pooling back into the legacy driver for the upcoming 1.0 release. It should be very straightforward to implement a simple pool for your application, and you will have one that does exactly what you want

fgalan
  • 11,732
  • 9
  • 46
  • 89