nervosnetwork / tentacle

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

fix: yamux window update bug #340

Closed driftluo closed 2 years ago

driftluo commented 2 years ago

There are two problems here, which cause yamux to fail to increase the default window normally:

  1. From spec, stream init window size must be 256kb
  2. Codec only needs to judge the size of length when it is of data type, to return in advance

The above modification does not affect the behavior under the default configuration but affects the user configuration behavior

Warng: If you need to adjust the window size, please update all application dependencies in time