loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Service returning invalid JSON #58

Closed rubiot closed 6 years ago

rubiot commented 6 years ago

When a webservice returns a response larger than 64K it sometimes responds with an invalid JSON. The JSON always breaks a little after byte 65536 (65550, 65543, etc.). Considering this is the size of the response chunk, this indicates an error on the chunks reassembling. I'm using it on Apache.

rubiot commented 6 years ago

Here is an instance of the problem (the asterisk marks byte 65535). Two field names in a row, the second one missing the initial quote. "logonTime" and "authenticatedBy" are field names, but there are several other fields in between them.

            *                    
"logonTime":authenticatedBy":"value"
loentar commented 6 years ago

Merged