Skip to content

[codec] optimise 0-size struct encode/decode #2

@frostyplanet

Description

@frostyplanet

it's possible to still invoked the deseralized logic in some of the coder, like msgp

[2025-10-10 16:15:43.752887][TRACE][client.rs:333] rpc client 0:0 rpc client read head response [seq:1, flag:0, msg:0, blob:0]
[2025-10-10 16:15:43.752913][DEBUG][client.rs:170] rpc client 0:0 recv task Open(FileClientTaskOpen(seq=1 req=FileOpenReq { path: "/tmp/test_file.txt" })) ok
[2025-10-10 16:15:43.752931][WARN][codec.rs:29] decode error: InvalidMarkerRead(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
[2025-10-10 16:15:43.752950][WARN][client.rs:173] rpc client 0:0 rpc client reader decode resp err

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions