aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-12-19 14:45:39 +0100
committerLoïc Hoguin <[email protected]>2018-12-19 14:45:39 +0100
commit9c579eb9b37836b6deacd3f0b81da8a0d1ee72a6 (patch)
tree15e7f54d0e5f938c3eb4d02e655cc99665b53555 /src/gun_http2.erl
parentd1cda6d1f05b672bc29bea5e84de6b0bb6815863 (diff)
downloadgun-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.erl5
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([]) ->