Commit 7d8d94d
committed
Add missing condition for whether to sleep in server monitor
There is a missing check in an already-complicated conditinal statement
for whether to sleep in the server monitor before executing the next check.
The condition is included in the server discovery and monitoring specification
pseudo-code but missing in the driver, and there are currently no tests for it.
This commits adds the missing condition to the conditional statement. Effectively,
this will reduce the number of sockets that the monitor opens on a server that is
in the process of shutting down but still accepting connections.
JAVA-47301 parent c963c71 commit 7d8d94d
File tree
1 file changed
+1
-1
lines changed- driver-core/src/main/com/mongodb/internal/connection
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments