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
9b01b644
Commit
9b01b644
authored
May 03, 2017
by
antirez
Browse files
Modules TSC: put the client in the pending write list.
parent
e67fb915
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
9b01b644
...
...
@@ -3307,7 +3307,19 @@ void moduleHandleBlockedClients(void) {
}
freeClient(bc->reply_client);
if
(
c
!=
NULL
)
unblockClient
(
c
);
if (c != NULL) {
unblockClient(c);
/* Put the client in the list of clients that need to write
* if there are pending replies here. This is needed since
* during a non blocking command the client may receive output. */
if (clientHasPendingReplies(c) &&
!(c->flags & CLIENT_PENDING_WRITE))
{
c->flags |= CLIENT_PENDING_WRITE;
listAddNodeHead(server.clients_pending_write,c);
}
}
/* Free 'bc' only after unblocking the client, since it is
* referenced in the client blocking context, and must be valid
* when calling unblockClient(). */
...
...
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