diff options
author | Loïc Hoguin <[email protected]> | 2020-08-20 15:29:38 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-09-21 15:51:57 +0200 |
commit | e1de84585490e85166926416e4eb5cea95e0e604 (patch) | |
tree | ac01fc5c8d98818eb82fa4d3415db472857c4990 /test/socks_SUITE.erl | |
parent | ca68d184abbf7bd1030b2f2035cc66c13d08dd5d (diff) | |
download | gun-e1de84585490e85166926416e4eb5cea95e0e604.tar.gz gun-e1de84585490e85166926416e4eb5cea95e0e604.tar.bz2 gun-e1de84585490e85166926416e4eb5cea95e0e604.zip |
Add gun_tunnel_up message to HTTP/2 CONNECT
Diffstat (limited to 'test/socks_SUITE.erl')
-rw-r--r-- | test/socks_SUITE.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/socks_SUITE.erl b/test/socks_SUITE.erl index b577cb9..5e15eac 100644 --- a/test/socks_SUITE.erl +++ b/test/socks_SUITE.erl @@ -449,7 +449,8 @@ do_socks5_through_h2_connect_proxy(OriginScheme, OriginTransport, ProxyScheme, P <<":authority">> := Authority1 }} = receive_from(Proxy1Pid), {response, nofin, 200, _} = gun:await(ConnPid, StreamRef), - %% We receive a stream-specific gun_socks_up afterwards. This is the origin HTTP server. + %% First the HTTP/2 tunnel is up, then the SOCKS tunnel to the origin HTTP server. + {up, socks} = gun:await(ConnPid, StreamRef), {up, http} = gun:await(ConnPid, StreamRef), %% The second proxy receives a Socks5 auth/connect request. {auth_methods, 1, [none]} = receive_from(Proxy2Pid), |