Closed slashmili closed 2 years ago
Since the window is only refilled when calling Mint.HTTP2.stream/2
on incoming data, you can exert back-pressure against the server by waiting to call Mint.HTTP2.stream/2
until the client is ready to handle more data.
Thanks @the-mikedavis. it makes sense!
I'm trying to use Mint as base library to make gRPC calls. The scenario that I have is that when the grpc service is something like this :
In this case the server could send stream of
EchoResponse
to the client. I was thinking one way to make sure that Server is not flooding the client with data that it can not handle is if I can leverageWINDOW_UPDATE
frame in the client side.I looked into the Mint code and it seems that Mint's internally is keeping track of it.
Do you think it's possible to allow users to set
WINDOW_UPDATE
?