Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
81a8ebd7
Commit
81a8ebd7
authored
Apr 26, 2015
by
Yossi Gottlieb
Committed by
antirez
May 04, 2015
Browse files
Fix Redis server crash when Lua command exceeds client output buffer
limit.
parent
c4d4c1ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
81a8ebd7
...
@@ -755,7 +755,7 @@ void freeClient(redisClient *c) {
...
@@ -755,7 +755,7 @@ void freeClient(redisClient *c) {
* a context where calling freeClient() is not possible, because the client
* a context where calling freeClient() is not possible, because the client
* should be valid for the continuation of the flow of the program. */
* should be valid for the continuation of the flow of the program. */
void
freeClientAsync
(
redisClient
*
c
)
{
void
freeClientAsync
(
redisClient
*
c
)
{
if
(
c
->
flags
&
REDIS_CLOSE_ASAP
)
return
;
if
(
c
->
flags
&
REDIS_CLOSE_ASAP
||
c
->
flags
&
REDIS_LUA_CLIENT
)
return
;
c
->
flags
|=
REDIS_CLOSE_ASAP
;
c
->
flags
|=
REDIS_CLOSE_ASAP
;
listAddNodeTail
(
server
.
clients_to_close
,
c
);
listAddNodeTail
(
server
.
clients_to_close
,
c
);
}
}
...
...
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