Skip to content

Commit

Permalink
Fix for #278
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Collison <derek@nats.io>
  • Loading branch information
derekcollison committed Jun 21, 2018
1 parent f9f78a2 commit c218d9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions server/client.go
Expand Up @@ -367,8 +367,7 @@ func (c *client) readLoop() {
if err := c.parse(b[:n]); err != nil {
// handled inline
if err != ErrMaxPayload && err != ErrAuthorization {
c.Errorf("Error reading from client: %s", err.Error())
c.sendErr("Parser Error")
c.Errorf("%s", err.Error())
c.closeConnection()
}
return
Expand Down
2 changes: 1 addition & 1 deletion server/parser.go
Expand Up @@ -709,7 +709,7 @@ authErr:
parseErr:
c.sendErr("Unknown Protocol Operation")
snip := protoSnippet(i, buf)
err := fmt.Errorf("%s Parser ERROR, state=%d, i=%d: proto='%s...'",
err := fmt.Errorf("%s parser ERROR, state=%d, i=%d: proto='%s...'",
c.typeString(), c.state, i, snip)
return err
}
Expand Down

0 comments on commit c218d9b

Please sign in to comment.