Daemon not processing JSON correctly #19
Labels
No labels
actions
bug
complicated
database
dependencies
documentation
downstream
duplicate
enhancement
feature
fixed already
front-end
idea
internal
invalid
investigating
javascript
low priority
milestone
minor bug
needs info
networking
nice to have
pcntl
php
question
suggestion
sync
threading
ui
ux
web
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bcarrella/libremail#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Periodically, JSON messages from the sync process to the daemon process logs JSON partials to the console. I imagine this is because it's not parsing the response correctly. Maybe JSON is being split into multiple messages and the "}" isn't the last character of the message?
The JSON deciphering is hacky right now, so a sigil might be needed to denote the beginning and end of the message.
The detection of "}" to signal the end of the message fails when a partial happens to have "}" at the end of the received chunk >_<
A better system of detecting JSON is needed. Either a streaming parser or a message size is needed in the header. Like a 4-byte message size header.