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

Frequent failure in a connection using client session tickets. #355

Open
AdityaHPatwardhan opened this issue Nov 12, 2021 · 4 comments
Open

Comments

@AdityaHPatwardhan
Copy link

I am trying a TLS connection from ESP32 to howsmyssl.com. The connection is done normally at first and then we attempt to reuse that session using the session tickets.
The connection used to succeed most of the time. but now it is failing frequently.
The example in question can be found here

@jmhodges
Copy link
Owner

How would I reproduce the problem on macOS? Is it possible that the problem is in mbedTLS?

@jmhodges
Copy link
Owner

Looking at the code without being able to build, having a global variable for the client session seems like a possible mistake? That's something that might be getting changed under the hood?

@AdityaHPatwardhan
Copy link
Author

@jmhodges , Umm the code is designed for esp32. I am not sure how to reproduce the same behaviour on macOS. I tried building the mbedtls on macOS but getting symbols not found error. I will see how I can provide you the steps to reproduce the problem.

Looking at the code without being able to build, having a global variable for the client session seems like a possible mistake? That's something that might be getting changed under the hood?
Not sure if the global variable causes any error. The global variable only stores the current client session for next use if the pointer is null.

Meanwhile, I had tested the CLIENT_SESSION_TICKET feature against a python HTTPS server. It works as expected.

@jmhodges
Copy link
Owner

jmhodges commented Jul 8, 2023

Without the python https server code given, I suspect that server doesn't actually have session ticket support. Session ticket support is very rare in Python land on the server side. Are you able to provide a reproduction?

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