Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

DTLS: last handshake flight cannot be retransmitted in rtpengine

Open
#1,796 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Read the linked pion/dtls issue #479 first for what the DTLS RFC expects from a server whose final flight is lost, then find where rtpengine drives the OpenSSL DTLS handshake as a server and where the last flight (the SSL3_MT_NEWSESSION_TICKET message) is sent. Reproduce with an openssl DTLS client against rtpengine with ~30% loss on the server-to-client path. Done means the cached last flight is resent when the client retransmits its final message and the handshake completes under that loss; run the existing DTLS tests to confirm no regression.

Written by the indexing model from the issue text.

Description

bug
rtpengine version the issue has been seen with

No response

Used distribution and its version

No response

Linux kernel version used

No response

CPU architecture issue was seen on (see uname -m)

None

Expected behaviour you didn't see

As a DTLS server, RTP engine should retransmit the last flight to client if the last flight is lost on network.

Unexpected behaviour you saw

As a DTLS server, RTP engine does not retransmit the last flight to client if the last flight is lost on network.
That will cause DTLS handshake failure.

Steps to reproduce the problem

Use an openssl as client, build DTLS connection with RTP engine, and set packet lost to 30% from RTP engine to client.
sometimes, DTLS handshake cannot be built correctly.

Additional program output to the terminal or logs illustrating the issue
Same issue with detailed description: https://github.com/pion/dtls/issues/479
Anything else?

It is easily to fix this issue, RTPengine cache the last flight (type == SSL3_MT_NEWSESSION_TICKET) before sending to client, if client re-sends the last DTLS message to RTP engine, RTP engine can retransmit the cached last flight to client.

Dominant language
Perl
Stars
992
Forks
459
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sipwise/rtpengine

All issues in sipwise/rtpengine

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.