aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-10-16 11:57:42 +0200
committerLoïc Hoguin <[email protected]>2020-10-16 11:57:42 +0200
commit91c1820b9ad8812b2a8c9960da0a460b0522b6e0 (patch)
tree77c94eca496f3733eee5780f7f69798170d4aa11 /src/gun_http2.erl
parentbe93437f45446ef8109538a3614ba538c9ce6715 (diff)
downloadgun-91c1820b9ad8812b2a8c9960da0a460b0522b6e0.tar.gz
gun-91c1820b9ad8812b2a8c9960da0a460b0522b6e0.tar.bz2
gun-91c1820b9ad8812b2a8c9960da0a460b0522b6e0.zip
Remove commented code
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 8312954..c5521ce 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -467,15 +467,6 @@ headers_frame(State0=#http2_state{transport=Transport, opts=Opts,
Proto = gun_tunnel,
ProtoOpts = case Destination of
#{transport := tls} ->
-%tls_handshake(internal, {tls_handshake,
-% HandshakeEvent0=#{tls_opts := TLSOpts0, timeout := TLSTimeout}, Protocols, ReplyTo},
-% State=#state{socket=Socket, transport=Transport, origin_host=OriginHost, origin_port=OriginPort,
-% event_handler=EvHandler, event_handler_state=EvHandlerState0}) ->
-% HandshakeEvent = HandshakeEvent0#{
-% tls_opts => TLSOpts,
-% socket => Socket
-% },
-% EvHandlerState = EvHandler:tls_handshake_start(HandshakeEvent, EvHandlerState0),
Protocols = maps:get(protocols, Destination, [http2, http]),
TLSOpts = gun:ensure_alpn_sni(Protocols, maps:get(tls_opts, Destination, []), DestHost),
HandshakeEvent = #{