diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-05-04 10:36:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 10:36:04 -0700 |
commit | eafb085d1172bb8aa1cdfd230d580910a691ecd4 (patch) | |
tree | 23548a253c24e042cc82e08ec57c3098267f1afc /read.h | |
parent | 994d2fd77d648b0a06eec91bc287c2e0d7d231ad (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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |