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

Incorrect user/pass should throw right away

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: