Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-585

Don't open and close a connection every 10 seconds

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8
    • Affects Version/s: 1.6
    • Component/s: None
    • None

      The C# driver opens and closes a connection every 10 seconds to ping the health of the server(s) it is connected to. It does this so that pinging the server is not dependent on a connection being available in the connection pool. The bad thing is that it causes lots of noise in the server logs about connections opening and closing.

      A better solution would be to open a connection and keep reusing it. This would be a dedicated connection for pinging and would never be put in the connection pool.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: