New config options about protocol prefixed with "proto".

Related to #4568.
This commit is contained in:
antirez
2018-01-11 11:27:03 +01:00
parent c2fa4b8a60
commit 8075572207
4 changed files with 13 additions and 13 deletions

View File

@ -1254,7 +1254,7 @@ int processMultibulkBuffer(client *c) {
}
ok = string2ll(c->querybuf+pos+1,newline-(c->querybuf+pos+1),&ll);
if (!ok || ll < 0 || ll > server.max_bulk_len) {
if (!ok || ll < 0 || ll > server.proto_max_bulk_len) {
addReplyError(c,"Protocol error: invalid bulk length");
setProtocolError("invalid bulk length",c,pos);
return C_ERR;