vscode-cosmosdb
vscode-cosmosdb copied to clipboard
Connecting to a Non-Existent Host Never Times Out
When attempting to connect to an unreachable (non-existent) host, the connection attempt hangs indefinitely. There is no timeout, and the user has no way to abort the process.
Steps to Reproduce
-
Create a local connection to a non-existent host:
- Take the connection string from a working host and modify the domain to something invalid or unreachable.
-
Attempt to connect.
-
Observe that the connection attempt does not complete or fail — it just hangs. 🐌
Expected Behavior
The connection attempt should timeout after a reasonable period or provide an option for the user to cancel.
We need some timeout extension setting and look into where else we should have timeout checks (see https://github.com/microsoft/vscode-cosmosdb/pull/2839#pullrequestreview-3510508205). @mkrueger can you take a look?