Skip to content

Commit 5044f16

Browse files
committed
bugfix: fixed nil multi bulk replies in the reply parser.
1 parent 6a1c5ee commit 5044f16

File tree

5 files changed

+415
-369
lines changed

5 files changed

+415
-369
lines changed

src/multi_bulk_reply.rl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
chunk_count = ([1-9] digit*) >start_reading_count $read_count
4747
;
4848

49-
multi_bulk_reply = "*" "0"+ CRLF @multi_bulk_finalize
50-
| "*" chunk_count CRLF @start_reading_chunk
49+
multi_bulk_reply = "*" "-1" CRLF @multi_bulk_finalize
50+
| "*" "0"+ CRLF @multi_bulk_finalize
51+
| "*" chunk_count CRLF @start_reading_chunk
5152
protected_chunk+
5253
@multi_bulk_finalize
5354
;

0 commit comments

Comments
 (0)