From 15ee5ce1c9e753f01395eba49f0e10740d9da20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Tue, 16 Jun 2020 12:01:07 +0200 Subject: [PATCH] Use small buffer for ident query --- pkg/ident/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ident/server.go b/pkg/ident/server.go index ce6f6bc5..58914879 100644 --- a/pkg/ident/server.go +++ b/pkg/ident/server.go @@ -70,6 +70,7 @@ func (s *Server) handle(conn net.Conn) { defer conn.Close() scan := bufio.NewScanner(conn) + scan.Buffer(make([]byte, 32), 32) if !scan.Scan() { return }