Skip to content

Commit

Permalink
before stash
Browse files Browse the repository at this point in the history
  • Loading branch information
ditschedev committed Apr 18, 2023
1 parent de41b1e commit dcd8ee5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (c *Conn) handle(cmd string, arg string) {
c.handleData(arg)
case "QUIT":
c.writeResponse(221, EnhancedCode{2, 0, 0}, "Bye")
c.Close()
case "AUTH":
if c.server.AuthDisabled {
c.protocolError(500, EnhancedCode{5, 5, 2}, "Syntax error, AUTH command unrecognized")
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s *Server) Serve(l net.Listener) error {
go func() {
err := s.handleConn(newConn(c, s))
if err != nil {
s.Logger.Error(err, "handler error: %s")
s.Logger.Error(err, "error handling connection")
}
}()
}
Expand Down

0 comments on commit dcd8ee5

Please sign in to comment.