From eafb085d1172bb8aa1cdfd230d580910a691ecd4 Mon Sep 17 00:00:00 2001 From: Michael Grunder Date: Mon, 4 May 2020 10:36:04 -0700 Subject: 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 --- read.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'read.h') 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 */ -- cgit v1.2.3