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: