ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
898 stars 231 forks source link

add flow control #148

Closed tony612 closed 6 years ago

essen commented 6 years ago

I will try and merge it if it's good, but note that it'll be a temporary solution, I want to extract most of the functions in Cowboy and reuse them in Gun as a lot is shared between client/server.

essen commented 6 years ago

Are you sure this is working? I can't seem to be able to send more than 65535 bytes.

essen commented 6 years ago

I'm working on importing the relevant code from Cowboy for now. That'll have the benefit of having trailers support too.

essen commented 6 years ago

Will push what I got last week in a few minutes. Only had to do minimal changes compared to what Cowboy does so that'll make it easy to split things off into a common module later on. Closing, thanks!