ParentFull threadiampims·the package `netutil` has a LimitListener function which wraps the given listener and accepts at most N simultaneous connections.View on HN