aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-08-26 11:20:06 +0200
committerLoïc Hoguin <[email protected]>2020-09-21 15:51:58 +0200
commit96e36a877fe79362c829492f71d532541ca857d7 (patch)
treeadcd5b94083a43c2af23ba98debed252072b422b /src/gun_http2.erl
parentd056e5fb2a1fbb54e108c5c61384573acf21b4cf (diff)
downloadgun-96e36a877fe79362c829492f71d532541ca857d7.tar.gz
gun-96e36a877fe79362c829492f71d532541ca857d7.tar.bz2
gun-96e36a877fe79362c829492f71d532541ca857d7.zip
Few more tests and fixes
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index ad52555..4908b6f 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -366,11 +366,6 @@ tunnel_commands([{switch_protocol, Protocol0, ReplyTo}|Tail], Stream=#stream{ref
%% @todo We need to allow other protocol opts in http2_opts too.
{Protocol1, maps:get(Protocol1:opts_name(), Opts, #{})}
end,
- %% When we switch_protocol from socks we must send a gun_tunnel_up message.
- _ = case CurrentProtocol of
- gun_socks -> ReplyTo ! {gun_tunnel_up, self(), stream_ref(State, StreamRef), Protocol:name()};
- _ -> ok
- end,
RealStreamRef = stream_ref(State, StreamRef),
OriginSocket = #{
gun_pid => self(),
@@ -665,7 +660,7 @@ handle_continue(StreamRef, Msg, State, EvHandler, EvHandlerState0)
%% Data that was received and decrypted.
{tls_proxy, ProxyPid, Data} ->
{Commands, EvHandlerState} = Protocol:handle(Data, ProtoState0, EvHandler, EvHandlerState0),
- {tunnel_commands(Commands, Stream, Protocol, TunnelInfo, State), EvHandlerState};
+ {{state, tunnel_commands(Commands, Stream, Protocol, TunnelInfo, State)}, EvHandlerState};
%% @todo What to do about those?
{tls_proxy_closed, ProxyPid} ->
todo;