netutil - ActiveState ActiveGo 1.8
...

Package netutil

import "golang.org/x/net/netutil"
Overview
Index

Overview ▾

Package netutil provides network utility functions, complementing the more common ones in the net package.

func LimitListener

func LimitListener(l net.Listener, n int) net.Listener

LimitListener returns a Listener that accepts at most n simultaneous connections from the provided Listener.