Skip to content

Potential partial-read risk in the connection loop #9

@NikhilSharmaWe

Description

@NikhilSharmaWe

Description

For unix socket-server: performs a single conn.Read(buffer) within each iteration. For larger messages, fragmentation, or TCP-based streams layered on top of UNIX sockets, partial reads can occur, requiring repeated reads until the entire payload is received. Consider implementing a loop or a length-prefixed protocol to accumulate the full message before parsing.

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