We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a6bbfc commit f96a436Copy full SHA for f96a436
driver-core/src/main/com/mongodb/connection/DefaultConnectionPool.java
@@ -483,6 +483,8 @@ public void close(final UsageTrackingInternalConnection connection) {
483
reason = "it is past its maximum allowed life time";
484
} else if (pastMaxIdleTime(connection)) {
485
reason = "it is past its maximum allowed idle time";
486
+ } else if (connection.isClosed()) {
487
+ reason = "the underlying connection was closed";
488
} else {
489
reason = "the pool has been closed";
490
}
0 commit comments