Use small buffer for ident query
This commit is contained in:
parent
e0d2243248
commit
15ee5ce1c9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue