libp2p / jvm-libp2p

a libp2p implementation for the JVM, written in Kotlin 🔥
https://libp2p.io
Apache License 2.0
260 stars 74 forks source link

[Yamux] Send whole data if window size is > 0 #319

Closed StefanBratanov closed 11 months ago

StefanBratanov commented 12 months ago

There were some inconsistencies with sendFrames method and the send buffer flush approach to sending data.

I would imagine a better approach is if window size is > 0, just send the whole data respecting the maxFrameDataLength.