diff options
author | Loïc Hoguin <[email protected]> | 2023-06-05 10:52:07 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2023-06-05 10:54:02 +0200 |
commit | 48eefebff2d0412bf6fe8a53182ef88a443b293f (patch) | |
tree | dfe1b7942e2b3654be30de374d25db6e646d0c63 /test/tunnel_SUITE.erl | |
parent | db0655def7d113f5aa168a1653df5d62245d3502 (diff) | |
download | gun-48eefebff2d0412bf6fe8a53182ef88a443b293f.tar.gz gun-48eefebff2d0412bf6fe8a53182ef88a443b293f.tar.bz2 gun-48eefebff2d0412bf6fe8a53182ef88a443b293f.zip |
Fix crash when TLS connection closes very early
And ensure that we don't infinite loop when retries are
enabled, by decrementing the retry count instead of using
a new one.
Also check for ssl:negotiated_protocol {error,closed}
which was possible but was not documented in OTP before
this change.
Thanks @voluntas for the help.
Diffstat (limited to 'test/tunnel_SUITE.erl')
-rw-r--r-- | test/tunnel_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tunnel_SUITE.erl b/test/tunnel_SUITE.erl index 39f7e45..14fb2ef 100644 --- a/test/tunnel_SUITE.erl +++ b/test/tunnel_SUITE.erl @@ -812,7 +812,7 @@ do_doc(Type, Endpoint) -> do_origin_start(Type) when Type =:= raw; Type =:= rawtls -> {Transport, Protocol} = do_type(Type), - gun_test:init_origin(Transport, Protocol, fun raw_SUITE:do_echo/3); + gun_test:init_origin(Transport, Protocol, fun raw_SUITE:do_echo/4); do_origin_start(Type) -> {Transport, Protocol} = do_type(Type), rfc7540_SUITE:do_cowboy_origin(Transport, Protocol). |