-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Connection Management
The driver uses NettyStreamFactoryFactory if NettyTransportSettings is specified regardless of whether the sync or reactive API is used. Currently, only the reactive MongoClient closes NettyStreamFactoryFactory, which means that NettyStreamFactoryFactory.eventLoopGroup leaks if NettyTransportSettings is specified and the sync MongoClient is used. There seem to be reasons for specifying NettyTransportSettings when using the sync API, which means we should also close NettyStreamFactoryFactory via the sync MongoClient.
- is related to
-
JAVA-5158 Make NettyStreamFactoryFactory implement AutoCloseable
- Closed