howsmyssl
howsmyssl copied to clipboard
Frequent failure in a connection using client session tickets.
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
How would I reproduce the problem on macOS? Is it possible that the problem is in mbedTLS?
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?
@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.
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?