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

Remove OperationTimeout from Settings

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.0
    • None
    • None
    • None

    Description

      We've decided to remove the global/settings based OperationTimeout. It was simply using a cancellation token with a timeout baked in and didn't provide as much granular control as is probably needed for this type of setting. In addition, a client-side timeout like this doesn't alert the server of a cancelled request.

      Hence, for timeouts, using maxTimeMS in the places where it's supported is the better alternative. When client-side timeouts are needed, writing a WithTimeout extension method is trivial.

      Attachments

        Activity

          People

            Unassigned Unassigned
            craig.wilson@mongodb.com Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: