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

Improve Handling of Partial Buffers #20

Open
dkz2 opened this issue Jul 16, 2023 · 0 comments
Open

Improve Handling of Partial Buffers #20

dkz2 opened this issue Jul 16, 2023 · 0 comments

Comments

@dkz2
Copy link
Contributor

dkz2 commented Jul 16, 2023

Our current implementation struggles to process partial flags and buffers efficiently. The application may crash if it encounters a partial buffer where the carriage return and newline are not yet present. Addressing this issue would involve implementing incremental parsing of flags.
Our current strategy involves scanning the buffer forward to determine if a \r\n sequence exist in the end of the buffer, if it does we attempt to decode the buffer, if not we return a .waitForMoreBytes status. However this approach many not handle some buffer arrangements correctly.

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

No branches or pull requests

1 participant