ConnCount returns the number of open connections and the maximum allowed connections. Returns 0 when the maximum allowed connections have not been set.
()
| 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. |
| 665 | func (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. |
no outgoing calls