vscode-cosmosdb icon indicating copy to clipboard operation
vscode-cosmosdb copied to clipboard

Connecting to a Non-Existent Host Never Times Out

Open tnaum-ms opened this issue 10 months ago • 1 comments

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

  1. 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.
  2. Attempt to connect.

  3. 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.

Image

tnaum-ms avatar Jun 10 '25 14:06 tnaum-ms

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?

sevoku avatar Nov 26 '25 14:11 sevoku