mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
Introduces `limiter.Listener` to provide a consistent and reusable mechanism for limiting incoming connections per client. The new listener is used by `sshutils/server.go` instead of manually applying limits in `HandleConnection`. This is particularly important now that the Proxy SSH port multiplexes both SSH and gRPC. Each listener is now wrapped in a `limiter.Listener` that uses the same `limiter.ConnectionsListener` to ensure that the connection limits for the Proxy are enforced for all traffic on the port.