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

Unobserved exceptions in RoundTripTimeMonitor.RunAsync on dispose

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Internal
    • None

    Description

      1. Task.Delay(_heartbeatInterval, _cancellationToken) needs to be moved into try/catch block.
      2. Exception in disposing a connection in catch block can lead to unobserved exception as well.

      Side note: reconsider the need for _lock object.

      Attachments

        Activity

          People

            Unassigned Unassigned
            boris.dogadov@mongodb.com Boris Dogadov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: