Commit 308c5fb
committed
JAVA-2740: Work around JDK bug that can cause SCRAM-SHA-1 authentication to intermittently fail, by synchronizing on the SecretKey in order to avoid premature finalization.
See https://bugs.openjdk.java.net/browse/JDK-8191177 for the bug report and https://bugs.openjdk.java.net/browse/JDK-8055183 for the suggested workaround1 parent c8d0906 commit 308c5fb
File tree
1 file changed
+8
-1
lines changed- driver-core/src/main/com/mongodb/connection
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
233 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
234 | 241 | | |
235 | 242 | | |
236 | 243 | | |
| |||
0 commit comments