Skip to content

Improve Handling of Partial Buffers #20

Open
@dkz2

Description

@dkz2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions