Use small buffer for ident query

This commit is contained in:
Ken-Håvard Lieng 2020-06-16 12:01:07 +02:00
parent e0d2243248
commit 15ee5ce1c9

View File

@ -70,6 +70,7 @@ func (s *Server) handle(conn net.Conn) {
defer conn.Close() defer conn.Close()
scan := bufio.NewScanner(conn) scan := bufio.NewScanner(conn)
scan.Buffer(make([]byte, 32), 32)
if !scan.Scan() { if !scan.Scan() {
return return
} }