Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
63fd1399
Commit
63fd1399
authored
Nov 25, 2011
by
antirez
Browse files
show initial querybuf bytes on querybuf overflow.
parent
e7ef418c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
63fd1399
...
@@ -911,9 +911,12 @@ void readQueryFromClient(aeEventLoop *el, int fd, void *privdata, int mask) {
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment