From f9ef8fc47b5ed2d733442012d0356ba3dc34b5d6 Mon Sep 17 00:00:00 2001 From: Kirill Danshin Date: Sun, 19 Apr 2020 00:42:21 +0300 Subject: [PATCH] update the docs Signed-off-by: Kirill Danshin --- server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.go b/server.go index 34e6f43..29ce909 100644 --- a/server.go +++ b/server.go @@ -180,6 +180,9 @@ type Server struct { // The maximum number of concurrent connections the server may serve. // // DefaultConcurrency is used if not set. + // + // Concurrency only works if you either call Serve once, or only ServeConn multiple times. + // It works with ListenAndServe as well. Concurrency int // Whether to disable keep-alive connections.