summaryrefslogtreecommitdiff
path: root/read.h
diff options
context:
space:
mode:
authorMichael Grunder <michael.grunder@gmail.com>2020-05-04 10:36:04 -0700
committerGitHub <noreply@github.com>2020-05-04 10:36:04 -0700
commiteafb085d1172bb8aa1cdfd230d580910a691ecd4 (patch)
tree23548a253c24e042cc82e08ec57c3098267f1afc /read.h
parent994d2fd77d648b0a06eec91bc287c2e0d7d231ad (diff)
Remove nested depth limitation. (#797)
* Remove nested depth limitation. This commit removes the nested multi-bulk depth limitation of 7. We do this by switching to pointer to pointer indirection and growing the stack in chunks when needed. See: #794, #421
Diffstat (limited to 'read.h')
-rw-r--r--read.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/read.h b/read.h
index af02aaf..6eff14c 100644
--- a/read.h
+++ b/read.h
@@ -97,7 +97,9 @@ typedef struct redisReader {
size_t len; /* Buffer length */
size_t maxbuf; /* Max length of unused buffer */
- redisReadTask rstack[9];
+ redisReadTask **task;
+ int tasks;
+
int ridx; /* Index of current read task */
void *reply; /* Temporary reply pointer */