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] Limit the send buffer size per stream #314

Closed StefanBratanov closed 12 months ago

StefanBratanov commented 12 months ago

Before we were limiting the sending buffer for the whole connection. I had a look in rust implementation and it looks like their implementation is limiting it per stream https://github.com/libp2p/rust-yamux/blob/master/yamux/src/lib.rs .This change could help with https://github.com/libp2p/jvm-libp2p/issues/311

StefanBratanov commented 12 months ago

Closing this. Will increase the buffer size per connection instead.