Don't log EOF as an error

It's expected when a client disconnects
pull/2832/head
Jason Wilder 2015-06-08 16:39:39 -06:00
parent 8323d6aa9e
commit 5e515fbeda
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ func (s *Service) handleConn(conn net.Conn) {
// Read type-length-value.
typ, buf, err := ReadTLV(conn)
if err != nil {
if strings.HasSuffix(err.Error(), "EOF") {
return
}
s.Logger.Printf("unable to read type-length-value %s", err)
return
}