Package netutil provides network utility functions, complementing the more common ones in the net package.
func LimitListener(l net.Listener, n int) net.Listener
LimitListener returns a Listener that accepts at most n simultaneous connections from the provided Listener.