diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:27:43 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 09:27:43 +0100 |
commit | 4e3bd7893d4e59ca23b629cc9084e9c61d5edf25 (patch) | |
tree | 8c864ce20d51c99cf46c04cdc8db5e024d338475 /hiredis.h | |
parent | ae5a13f55753dc5dddc7d7a9a723c1559054359d (diff) |
Add support to lazily disconnect an asynchronous connection
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,12 @@ * in the flags field is set when the context is connected. */ #define REDIS_CONNECTED 0x2 +/* The async API might try to disconnect cleanly and flush the output + * buffer and read all subsequent replies before disconnecting. + * This flag means no new commands can come in and the connection + * should be terminated once all replies have been read. */ +#define REDIS_DISCONNECTING 0x4 + #define REDIS_ERROR -1 #define REDIS_REPLY_ERROR 0 #define REDIS_REPLY_STRING 1 |