Use small buffer for ident query
This commit is contained in:
parent
e0d2243248
commit
15ee5ce1c9
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user