nervosnetwork / tentacle

A multiplexed p2p network framework that supports custom protocols
https://docs.rs/tentacle
MIT License
54 stars 24 forks source link

Unable to open protocol randomly, especially when the client only has limited CPU resources. #297

Closed yangby-cryptape closed 3 years ago

yangby-cryptape commented 3 years ago

Description

Unable to open protocol randomly, especially when the client only has limited CPU resources.

This issue was introduced since PR 288: fix: fix some msg left on buffer. https://github.com/nervosnetwork/tentacle/blob/0c5c1e43f692f1e7c053d2e5aa10af35a7d40dfd/yamux/src/session.rs#L81-L87

Reason

Reproduce