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

Incorrect user/pass should throw right away

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.8.3
    • None
    • Environment:
      v1.8.3.9 C# driver; Windows 7 64-bit client; Red Hat Linux server; 3-node replica set with 1 arbiter;

      When the wrong user/pass is given, the driver should throw an exception right away without waiting for the default 30 second Connection Timeout. This used to work correctly in 1.7.* drivers and when we upgraded to 1.8 drivers the behavior has changed.

      The exception that gets thrown is the generic MongoConnectionException that says "Unable to connect in the specified timeframe of '00:00:30'"

      I'm not sure if the driver is continuously trying for 30 seconds but it would be nice if it can throw right away like it used to.

            Assignee:
            Unassigned Unassigned
            Reporter:
            rasitha1 Rasitha Wijesinghe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: