server: add MaxConn option
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
06c3cd6637
commit
42f4d26fe4
@ -56,6 +56,9 @@ type Options struct {
|
|||||||
TLSConfig *tls.Config
|
TLSConfig *tls.Config
|
||||||
|
|
||||||
Wait *sync.WaitGroup
|
Wait *sync.WaitGroup
|
||||||
|
|
||||||
|
// MaxConn limit connections to server
|
||||||
|
MaxConn int
|
||||||
// Other options for implementations of the interface
|
// Other options for implementations of the interface
|
||||||
// can be stored in a context
|
// can be stored in a context
|
||||||
Context context.Context
|
Context context.Context
|
||||||
|
Loading…
Reference in New Issue
Block a user