mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
show initial querybuf bytes on querybuf overflow.
This commit is contained in:
parent
e7ef418ccd
commit
63fd13996d
@ -911,9 +911,12 @@ void readQueryFromClient(aeEventLoop *el, int fd, void *privdata, int mask) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (sdslen(c->querybuf) > server.client_max_querybuf_len) {
|
if (sdslen(c->querybuf) > server.client_max_querybuf_len) {
|
||||||
sds ci = getClientInfoString(c);
|
sds ci = getClientInfoString(c), bytes = sdsempty();
|
||||||
redisLog(REDIS_WARNING,"Closing client that reached max query buffer length: %s", ci);
|
|
||||||
|
bytes = sdscatrepr(bytes,c->querybuf,64);
|
||||||
|
redisLog(REDIS_WARNING,"Closing client that reached max query buffer length: %s (qbuf initial bytes: %s)", ci, bytes);
|
||||||
sdsfree(ci);
|
sdsfree(ci);
|
||||||
|
sdsfree(bytes);
|
||||||
freeClient(c);
|
freeClient(c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user