MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / ConnCount

Method ConnCount

internal/proxy/proxy.go:665–667  ·  view source on GitHub ↗

ConnCount returns the number of open connections and the maximum allowed connections. Returns 0 when the maximum allowed connections have not been set.

()

Source from the content-addressed store, hash-verified

663// ConnCount returns the number of open connections and the maximum allowed
664// connections. Returns 0 when the maximum allowed connections have not been set.
665func (c *Client) ConnCount() (uint64, uint64) {
666 return atomic.LoadUint64(&c.connCount), c.conf.MaxConnections
667}
668
669// Serve starts proxying connections for all configured instances using the
670// associated socket.

Callers 2

TestClientConnCountFunction · 0.95
HandleReadinessMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestClientConnCountFunction · 0.76