From 2c8db0879109dd90443d7b276e5ca2daf83920bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 20 Aug 2020 16:06:59 +0200 Subject: Rename the 3-arity gun_socks_up to gun_tunnel_up --- src/gun_http.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gun_http.erl') diff --git a/src/gun_http.erl b/src/gun_http.erl index 6b511a3..bced64d 100644 --- a/src/gun_http.erl +++ b/src/gun_http.erl @@ -340,12 +340,14 @@ handle_connect(Rest, State=#http_state{ timeout => maps:get(tls_handshake_timeout, Destination, infinity) }, Protocols = maps:get(protocols, Destination, [http2, http]), +%% @todo gun_tunnel_up when the protocol switch is complete {handle_ret([ {origin, <<"https">>, NewHost, NewPort, connect}, {tls_handshake, HandshakeEvent, Protocols, ReplyTo} ], State), EvHandlerState1}; _ -> [Protocol] = maps:get(protocols, Destination, [http]), +%% @todo gun_tunnel_up {handle_ret([ {origin, <<"http">>, NewHost, NewPort, connect}, {switch_protocol, Protocol, ReplyTo} -- cgit v1.2.3