ttrpc
ttrpc copied to clipboard
ttrpc: add a message length check before send
In channel.go:recv() function, may be recv a invalid message header, while the mh.Length value is an unusually large value, a large amount of data will be received and discarded.(But it may not actually send that much data.) So,ttrpc server will discard all RPC requests, it wasn't what we were hoping for.
Signed-off-by: Qian Zhang [email protected]