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

Unobserved exceptions in RoundTripTimeMonitor.RunAsync on dispose

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Internal
    • None

      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.

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

              Created:
              Updated: