diff options
author | Loïc Hoguin <[email protected]> | 2018-12-19 14:45:39 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-12-19 14:45:39 +0100 |
commit | 9c579eb9b37836b6deacd3f0b81da8a0d1ee72a6 (patch) | |
tree | 15e7f54d0e5f938c3eb4d02e655cc99665b53555 /src/gun_http2.erl | |
parent | d1cda6d1f05b672bc29bea5e84de6b0bb6815863 (diff) | |
download | gun-9c579eb9b37836b6deacd3f0b81da8a0d1ee72a6.tar.gz gun-9c579eb9b37836b6deacd3f0b81da8a0d1ee72a6.tar.bz2 gun-9c579eb9b37836b6deacd3f0b81da8a0d1ee72a6.zip |
Convert the gun process to gen_statem
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r-- | src/gun_http2.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 3468448..6538083 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -18,7 +18,7 @@ -export([name/0]). -export([init/4]). -export([handle/2]). --export([close/1]). +-export([close/2]). -export([keepalive/1]). -export([request/8]). -export([request/9]). @@ -225,7 +225,8 @@ ignored_frame(State=#http2_state{http2_machine=HTTP2Machine0}) -> terminate(State#http2_state{http2_machine=HTTP2Machine}, Error) end. -close(#http2_state{streams=Streams}) -> +%% @todo Use Reason. +close(_, #http2_state{streams=Streams}) -> close_streams(Streams). close_streams([]) -> |