sql,server: enable client connections to time out #44012
Labels
A-kv-server
Relating to the KV-level RPC server
A-security
A-sql-pgwire
pgwire protocol issues.
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Currently if some system ranges are unavailable, cockroachdb waits forever for a query on
system.user
to complete before it authenticates a client.Client libraries with a built-in timeout are fine, but those that haven't are out of luck, potentially causing an accumulation of TCP sockets in the system in state accepted, but not making progress.
CockroachDB should instead have a timeout after which it refuses the connection, and the timeout should be configurable.
The text was updated successfully, but these errors were encountered: