diff options
author | Micael Karlberg <bmk@erlang.org> | 2019-12-17 10:03:59 +0100 |
---|---|---|
committer | Micael Karlberg <bmk@erlang.org> | 2019-12-17 10:03:59 +0100 |
commit | 8e01f85049eeaf34c72632f922e1c97ceb846e94 (patch) | |
tree | 3e07cace7427fb4fa42c7ae81ba98e7b3090e180 /erts | |
parent | 7919c1adee9819dd8ae8477f9fad24ddd0d4c46f (diff) | |
download | erlang-8e01f85049eeaf34c72632f922e1c97ceb846e94.tar.gz |
[esock|test] Add (IPv6) test case for multi accept issue
Added a IPv6 test case for the multiple acceptors and
connect core issue.
OTP-16359
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/test/socket_SUITE.erl | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/erts/emulator/test/socket_SUITE.erl b/erts/emulator/test/socket_SUITE.erl index 9826bfea1d..19746c3b08 100644 --- a/erts/emulator/test/socket_SUITE.erl +++ b/erts/emulator/test/socket_SUITE.erl @@ -598,7 +598,8 @@ ttest_ssockt_csockt_large_tcpL/1, %% Tickets - otp16359_maccept_tcp4/1 + otp16359_maccept_tcp4/1, + otp16359_maccept_tcp6/1 ]). @@ -1841,7 +1842,8 @@ tickets_cases() -> otp16359_cases() -> [ - otp16359_maccept_tcp4 + otp16359_maccept_tcp4, + otp16359_maccept_tcp6 ]. @@ -39438,7 +39440,7 @@ otp16359_maccept_tcp4(suite) -> otp16359_maccept_tcp4(doc) -> []; otp16359_maccept_tcp4(_Config) when is_list(_Config) -> - ?TT(?SECS(5)), + ?TT(?SECS(10)), tc_try(otp16359_maccept_tcp4, fun() -> InitState = #{domain => inet, @@ -39446,6 +39448,26 @@ otp16359_maccept_tcp4(_Config) when is_list(_Config) -> ok = otp16359_maccept_tcp(InitState) end). + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%% Basically open (create) and info of an IPv4 UDP (dgram) socket. +%% With some extra checks... +otp16359_maccept_tcp6(suite) -> + []; +otp16359_maccept_tcp6(doc) -> + []; +otp16359_maccept_tcp6(_Config) when is_list(_Config) -> + ?TT(?SECS(10)), + tc_try(otp16359_maccept_tcp6, + fun() -> has_support_ipv6() end, + fun() -> + InitState = #{domain => inet6, + protocol => tcp}, + ok = otp16359_maccept_tcp(InitState) + end). + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otp16359_maccept_tcp(InitState) -> |