diff options
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -86,6 +86,8 @@ #define REDIS_REPLY_STATUS 5 #define REDIS_REPLY_ERROR 6 +#define REDIS_READER_MAX_BUF (1024*16) /* Default max unused reader buffer. */ + #ifdef __cplusplus extern "C" { #endif @@ -125,6 +127,7 @@ typedef struct redisReader { char *buf; /* Read buffer */ size_t pos; /* Buffer cursor */ size_t len; /* Buffer length */ + size_t maxbuf; /* Max length of unused buffer */ redisReadTask rstack[4]; int ridx; /* Index of current read task */ |