xtaci / smux

A Stream Multiplexing Library for golang with least memory usage(TDMA)
MIT License
1.27k stars 189 forks source link

add more test and fix write only stream cause session bucket exhausted if MaxReceiveBuffer <= initialPeerWindow #89

Open cs8425 opened 2 years ago

cs8425 commented 2 years ago

as title, when:

  1. MaxReceiveBuffer <= initialPeerWindow
  2. stream keep writing at A side
  3. stream did not read at B side

the session bucket at B side will exhausted