mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -855,7 +855,7 @@ func (c *client) parse(buf []byte) error {
|
||||
// exact at all but the performance hit is too great to be precise, and
|
||||
// catching here should prevent memory exhaustion attacks.
|
||||
if len(c.argBuf) > int(mcl) {
|
||||
c.sendErr("Maximum Control Line Exceeded")
|
||||
c.sendErr(ErrMaxControlLine.Error())
|
||||
c.closeConnection(MaxControlLineExceeded)
|
||||
return ErrMaxControlLine
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user