Data spill to the next chunk unexpectedly #1904
-
I use chunked transfer with code like the documentation. When transferring thousands of lines of JSON string e.g. The problem is: at the receiving end (use Mojo::UserAgent) randomly some lines failed to decode as they are split between chunks. So, is this behavior normal or a bug?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
If you do a chunked read you have to buffer the received bytes until you receive a full JSON object to decode |
Beta Was this translation helpful? Give feedback.
-
For the record:
|
Beta Was this translation helpful? Give feedback.
For the record: