Skip to content

Commit

Permalink
bumped max control line to match the server default of 4K (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Apr 23, 2020
1 parent e12e985 commit e9df21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nats.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const DEFAULT_PORT = 4222
const DEFAULT_PRE = 'nats://localhost:'
const DEFAULT_URI = DEFAULT_PRE + DEFAULT_PORT

const MAX_CONTROL_LINE_SIZE = 1024
const MAX_CONTROL_LINE_SIZE = 4096

// Parser state
const AWAITING_CONTROL = 0
Expand Down

0 comments on commit e9df21b

Please sign in to comment.