Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better stream parser to handle uncompleted chunks #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kpihus
Copy link

@kpihus kpihus commented Apr 26, 2019

From time to time it happens that chunk returned from http stream does not contain full JSON string, this parsing it to proper JSON object fails, and ends up with application crash. So i made small modifications to ensure that parsing only happens when full JSON string has arrived, and any leftovers are kept for another turn.

Any comments?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant