From 42f4d26fe46aecf65a8e4a71780c44090be22cb6 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 15 Dec 2020 11:46:26 +0300 Subject: [PATCH] server: add MaxConn option Signed-off-by: Vasiliy Tolstov --- server/options.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/options.go b/server/options.go index 0690d634..d154842b 100644 --- a/server/options.go +++ b/server/options.go @@ -56,6 +56,9 @@ type Options struct { TLSConfig *tls.Config Wait *sync.WaitGroup + + // MaxConn limit connections to server + MaxConn int // Other options for implementations of the interface // can be stored in a context Context context.Context