Skip to content
New issue

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

Correct closing of ssl handling DTLS - Erlang OTP 25.3 or higher... #7951

Closed
cwmichi opened this issue Dec 13, 2023 · 1 comment
Closed

Correct closing of ssl handling DTLS - Erlang OTP 25.3 or higher... #7951

cwmichi opened this issue Dec 13, 2023 · 1 comment
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Milestone

Comments

@cwmichi
Copy link

cwmichi commented Dec 13, 2023

Hello together,

I have a new issue closing a DTLS socket (using UDP) when the connection is emulated and when I am closing the running process the socket still keeps open, e.g. the listener owner dies

Steps 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).

and Port 63450 is still open

@cwmichi cwmichi added the bug Issue is reported as a bug label Dec 13, 2023
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Dec 18, 2023
@IngelaAndin
Copy link
Contributor

Thank you for the report. We will fix it but it is not top priority.

@IngelaAndin IngelaAndin added this to the OTP-27.0 milestone Dec 19, 2023
dgud added a commit to dgud/otp that referenced this issue Mar 20, 2024
So we can cleanup if caller dies, otherwise we leak a process and a
socket.

Also fix ssl:close/2 on listen socket.

Fixes erlang#7951
dgud added a commit to dgud/otp that referenced this issue Mar 21, 2024
So we can cleanup if caller dies, otherwise we leak a process and a
socket.

Also fix ssl:close/2 on listen socket.

Fixes erlang#7951
@dgud dgud closed this as completed in 49b9195 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug priority:medium team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

2 participants