Clarify redisAsyncDisconnect behavior in comments
This commit is contained in:
parent
ad2456047e
commit
8b0fddcb02
6
async.c
6
async.c
@ -70,7 +70,11 @@ int redisAsyncSetDisconnectCallback(redisAsyncContext *ac, redisDisconnectCallba
|
|||||||
|
|
||||||
/* Tries to do a clean disconnect from Redis, meaning it stops new commands
|
/* Tries to do a clean disconnect from Redis, meaning it stops new commands
|
||||||
* from being issued, but tries to flush the output buffer and execute
|
* from being issued, but tries to flush the output buffer and execute
|
||||||
* callbacks for all remaining replies. */
|
* callbacks for all remaining replies.
|
||||||
|
*
|
||||||
|
* This functions is generally called from within a callback, so the
|
||||||
|
* processCallbacks function will pick up the flag when there are no
|
||||||
|
* more replies. */
|
||||||
void redisAsyncDisconnect(redisAsyncContext *ac) {
|
void redisAsyncDisconnect(redisAsyncContext *ac) {
|
||||||
redisContext *c = &(ac->c);
|
redisContext *c = &(ac->c);
|
||||||
c->flags |= REDIS_DISCONNECTING;
|
c->flags |= REDIS_DISCONNECTING;
|
||||||
|
Loading…
Reference in New Issue
Block a user