-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Previous, we implemented the Connections as having strong references to the ConnectionPool to facilitate having the pool emit all CMAP events, which wouldn't otherwise be possible due to ConnectionClosed potentially occurring after the pool is dropped. However, after discussion with other in the drivers team, we came to the conclusion that keeping the pool alive (and therefore all the connections in it) until the last connection is returned is undesirable behavior, so we should change the references back to weak references and have the connections emit their own ConnectionClosed event if necessary.