SERVER-90352ClosedFixed

AsioNetworkBaton::detachImpl doesn't clear the _timersById map

{{AsioNetworkingBaton::detachImpl}} doesn't [clear the {{_timersById}} map|https://github.com/mongodb/mongo/blob/1b7f568a92bd7dd6fb1bda000ea6d537ed865cd1/src/mongo/transport/asio/asio_networking_baton.cpp#L654-L663]. Once a baton has detached, it shouldn't have any active timers. That is, when [{{AsioNetworkingBaton::_cancelTimer}}|https://github.com/mongodb/mongo/blob/1b7f568a92bd7dd6fb1bda000ea6d537ed865cd1/src/mongo/transport/asio/asio_networking_baton.cpp#L393] is called after detachment, it

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
8.1.0-rc08.0.0-rc67.0.136.0.21
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.