Skip to content

Commit

Permalink
server: handle closed connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Koukas authored and emersion committed Oct 21, 2022
1 parent 201c9ab commit 49b1743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func (s *Server) handleConn(c *Conn) error {

c.handle(cmd, arg)
} else {
if err == io.EOF {
if err == io.EOF || errors.Is(err, net.ErrClosed) {
return nil
}
if err == ErrTooLongLine {
Expand Down

0 comments on commit 49b1743

Please sign in to comment.