mint icon indicating copy to clipboard operation
mint copied to clipboard

Avoid unnecessary `WINDOW_UPDATE` frames in HTTP/2 client

Open v0idpwn opened this issue 9 months ago • 1 comments

In the current implementation, Mint automatically "refills" window sizes for both the stream and the connection whenever it receives data frames. This approach, while functional, leads to the generation of excess traffic due to frequent and possibly unnecessary WINDOW_UPDATE frames.

A more efficient approach is seen in :gun, which employs some heuristics to determine when sending WINDOW_UPDATE frames is actually needed. I suggest implementing a similar strategy in Mint as an optimization.

v0idpwn avatar Apr 29 '24 13:04 v0idpwn

@v0idpwn sure we can do that. The HTTP/2 spec says to refill whenever you get data IIRC, but yeah we can try and be smarter. Wanna make a PR for this? I will not have time for a while and this is not high prio given everything technically works.

whatyouhide avatar Apr 29 '24 17:04 whatyouhide