We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When listen on same port using once inet and once inet6 without using {ip,ListenIP} will create one record in ets dtls_listener_sup
To Reproduce 1> application:ensure_all_started(ssl). {ok,[crypto,asn1,public_key,ssl]} 2> spawn(fun() -> ssl:listen(0,[inet,{port,63450},{ciphers,[#{cipher => aes_256_gcm,key_exchange => psk,mac => aead,prf => sha384}]},{protocol,dtls},{versions,['dtlsv1.2']},{verify,verify_none},{psk_identity,"psk"}]) end). 3> spawn(fun() -> ssl:listen(0,[inet6,{ipv6_v6only,true},{port,63450},{ciphers,[#{cipher => aes_256_gcm,key_exchange => psk,mac => aead,prf => sha384}]},{protocol,dtls},{versions,['dtlsv1.2']},{verify,verify_none},{psk_identity,"psk"}]) end).
This gives in ets dtls_listener_sup {{0,0,0,0},63450} {Pid1,Pid2}
Expected behavior Except two records in ets dtls_listener_sup: {{0,0,0,0},63450} {Pid1,Pid2} %inet {{0,0,0,0,0,0,0,0},63450} {Pid3,Pid4} %inet6
Affected versions Tested 25.x and 26.1.x
The text was updated successfully, but these errors were encountered:
Thank you for reporting it. We will fix it but will not be top priority.
Sorry, something went wrong.
Fix dtls listen on ipv6 with default ip
2c70066
IP adress always defaulted to {0,0,0,0} even for ipv6 connections, which caused a single entry if you where listening on both stacks. Fixes erlang#7955
bf9fb58
Merge branch 'dgud/ssl/dtls/GH-7955/OTP-19037' into maint
63dcc9e
* dgud/ssl/dtls/GH-7955/OTP-19037: Add testcases. Monitor dtls listen caller Fix dtls listen on ipv6 with default ip
8025f89
Merge branch 'dgud/ssl/dtls/GH-7955/OTP-19037' into maint-26
4f1a24b
Successfully merging a pull request may close this issue.
Describe the bug
When listen on same port using once inet and once inet6 without using {ip,ListenIP} will create one record in ets dtls_listener_sup
To Reproduce
1> application:ensure_all_started(ssl).
{ok,[crypto,asn1,public_key,ssl]}
2> spawn(fun() -> ssl:listen(0,[inet,{port,63450},{ciphers,[#{cipher => aes_256_gcm,key_exchange => psk,mac => aead,prf => sha384}]},{protocol,dtls},{versions,['dtlsv1.2']},{verify,verify_none},{psk_identity,"psk"}]) end).
3> spawn(fun() -> ssl:listen(0,[inet6,{ipv6_v6only,true},{port,63450},{ciphers,[#{cipher => aes_256_gcm,key_exchange => psk,mac => aead,prf => sha384}]},{protocol,dtls},{versions,['dtlsv1.2']},{verify,verify_none},{psk_identity,"psk"}]) end).
This gives in ets dtls_listener_sup
{{0,0,0,0},63450} {Pid1,Pid2}
Expected behavior
Except two records in ets dtls_listener_sup:
{{0,0,0,0},63450} {Pid1,Pid2} %inet
{{0,0,0,0,0,0,0,0},63450} {Pid3,Pid4} %inet6
Affected versions
Tested 25.x and 26.1.x
The text was updated successfully, but these errors were encountered: