-
Type: Bug
-
Resolution: Cannot Reproduce
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Connectivity
-
Environment:OS:
node.js / npm versions:
Additional info:
-
Not Needed
Problem Statement/Rationale
If I have connected MongoSH against a running server (there is the topology/DB message on the prompt), then I shut down the server and press enter on the prompt, MongoSH realises that it is disconnected.
If I type exit at this point, it will get stuck for some time before exiting. The problem doesn't occur if I type exit before pressing enter after shutting down the server (i.e., before MongoSH has realised that it has disconnected).
Example:
Enterprise [direct: mongos] MDBW22> Enterprise MDBW22> exit^C^C Stopping execution... Enterprise MDBW22> Enterprise MDBW22> exit
Steps to Reproduce
Connect MongoSH to a server. Shut down the server. Press ENTER on the MongoSH prompt, then type 'exit'.