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

Session resumption doesn't work #1803

Open
L4stJudgment opened this issue Jun 18, 2024 · 2 comments
Open

Session resumption doesn't work #1803

L4stJudgment opened this issue Jun 18, 2024 · 2 comments

Comments

@L4stJudgment
Copy link

Hi there

I'm trying to use session resumption with 0-RTT using Connection::session() and Connection::set_session() directly after recreating a connection. The client which should save the session with .session() is somehow not able to pull any session-info.

Establishing a connection between server and client with full handshake works according to the logs, the server also sends a stateless retry and the client uses the retry-packet to extract the SCID correctly. But session resumption doesn't work

        if conn.is_established() {
            info!("connection established, {:?}", conn.stats());

            // Save session data after the connection is established
            if let Some(session_data) = conn.session() {
                let data_vec = session_data.to_vec();
                info!("Session data received after connection establishment: {:?}", data_vec);
                return Ok((conn, Some(data_vec)));
            } else {
                error!("No session data received after connection establishment.");
                return Ok((conn, None));
            }
        }

Here is a part of the logs:
2024-06-18T14:54:20.075143700Z [INFO] - connection established, recv=3 sent=2 lost=0 retrans=0 sent_bytes=618 recv_bytes=1503 lost_bytes=0
2024-06-18T14:54:20.075350000Z [ERROR] - No session data received after connection establishment.

@L4stJudgment
Copy link
Author

@LPardue
I've seen you implemented some testing around session resumption.
Can you maybe help me out? That would be great, thank you!

@caniko
Copy link

caniko commented Nov 23, 2024

@L4stJudgment and @LPardue any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants