-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Empty show more show less
-
Not Needed
NODE-4429 Description
What problem are you facing?
Since mongodb(nodejs) 4.8.0 running `await connection.close()` after the connection had errored (with `MongoNetworkError: connection 1 to 127.0.0.1:38111 closed`), it hangs for 30 seconds
This problem goes away when reverting to mongodb 4.7.3
What driver and relevant dependency versions are you using?
mongodb 4.8.0
Steps to reproduce?
- have a running mongodb 5.0.8 (or later patch version) instance
- connect with a MongoClient connection
- execute command `await con.db('admin').command({ shutdown: 1, force: true, timeoutSecs: 1 })`
- try running `await connection.close()`
- observe it hanging for 30 seconds
- is depended on by
-
NODE-4429 4.8.0 Regression, "MongoClient.close" hangs for 30s when connection errored
- Closed