[CSHARP-3841] Unobserved exceptions in RoundTripTimeMonitor.RunAsync on dispose Created: 08/Sep/21  Updated: 22/Jun/22

Status: Blocked
Project: C# Driver
Component/s: Internal
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Boris Dogadov Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CSHARP-2490 Reimplement SDAM to follow the spec m... Backlog

 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.


Generated at Wed Feb 07 21:46:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.