nitely / nim-hyperx

Pure Nim http2 client and server 🖖
MIT License
29 stars 0 forks source link

Stream recv flow-control bounded #12

Closed nitely closed 5 months ago

nitely commented 6 months ago

fixes #6

nitely commented 6 months ago

mmh for stream window updates, the stream can be close for whatever reason and it won't affect the rest. Main stream window updates seem tricky, as we must ensure the window update is sent if the stream is closed, or an error occurs and there is pending recv data.

We can keep the current behaviour for the main stream, but then consume space can grow up to number streams multiplied by window size. Instead of just window size.