Skip to content

The connection stream will be out of order while a packet received whose size exceeds 4Mb #198

@Tim-Zhang

Description

@Tim-Zhang

We use 4Mb as the size limit of our ttrpc message(packet)
, but we didn't discard the whole packet and just continue to process the next packet

if mh.length > MESSAGE_LENGTH_MAX as u32 {
return Err(get_rpc_status(
Code::INVALID_ARGUMENT,
format!(
"message length {} exceed maximum message size of {}",
mh.length, MESSAGE_LENGTH_MAX
),
));

, and then the stream of the connection will be out of order.

Affected versions:

  • 0.5.x
  • 0.6.x
  • 0.7.x
  • 0.8.x / master

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions