ODatabase Connection not getting closed
We are running into an issue where we are reaching the max number of concurrent connections. Even calling Close() or Dispose() on the database instance, we are seeing the connections not being disposed properly.
In the Close() method of the ODatabase class it does a check for _containsConnection, but that instance variable is never set to true so the connection is never closed. Please advise if this is a bug or if there is another way to dispose the database connection. #144
Hi, we are also living the same problem. We modified the source code to test by adding _containsConnection = true, in the GetConnection method of ODatabase.cs (I send as attachment), but still we are seeing open connections when we list using console.sh by LIST CONNECTIONS command.
We are using two distributed nodes, running multithread console application with 4 threads and 1 static ODatabase object instance per thread. We are sending approx 400k commands in 10 hours and we see approx 1000 connections when we list using LIST CONNECTIONS command. When we terminate the application number of connections decrease gradually.

Deploy Preview for superstore-redwood-stripe ready!
| Name | Link |
|---|---|
| Latest commit | 63f420f7cb8b3cfc001fce952278f84441dc6434 |
| Latest deploy log | https://app.netlify.com/sites/superstore-redwood-stripe/deploys/6671068b17e27f0008825128 |
| Deploy Preview | https://deploy-preview-486--superstore-redwood-stripe.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Any update on this issue?
please share me the code for oreintdb 2.2.33 database connection through c#.net