Enables ScopedDbConnection to set the timeout.

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.6.4
    • Component/s: Internal Client
    • None
    • Environment:
      Linux
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Hi, we're now integrating mongodb into our products using C++ driver. We noticed that the client sometimes gets blocked forever, when the server is in high load.

      To solve this problem, setting the client-side timeout seems good idea. I looked at the code, and DBClientConnection has timeout parameter for the constructor. But we cannot specify that parameter via ScopedDbConnection.

      Could you add that API?

            Assignee:
            Unassigned
            Reporter:
            Kazuki Ohta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: