X Tutup
Skip to content

Add error log with mbedtls_ssl_setup error code.#9

Merged
thebentern merged 1 commit intomeshtastic:masterfrom
cpatulea:setup
Mar 7, 2026
Merged

Add error log with mbedtls_ssl_setup error code.#9
thebentern merged 1 commit intomeshtastic:masterfrom
cpatulea:setup

Conversation

@cpatulea
Copy link
Copy Markdown

SSL handshake seems to fail sometimes (meshtastic/firmware#6960) but we need more detail on the mbedtls_ssl_setup error code to identify the problem.

'Web Client Rebuild' group is also seeing some '[HTTPS:E] SSL handshake failed.', we need more info to determine if it's related to the bug report above or something unrelated.

@cpatulea
Copy link
Copy Markdown
Author

cpatulea commented Mar 5, 2026

@thebentern would you be able to review?

@thebentern thebentern requested a review from Copilot March 5, 2026 12:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional logging to capture the mbedtls_ssl_setup error code when SSL setup fails, to help diagnose intermittent TLS handshake failures.

Changes:

  • Log mbedtls_ssl_setup return code on failure.
  • Preserve existing cleanup path (mbedtls_ssl_free) after setup failure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

SSL handshake seems to fail sometimes (meshtastic/firmware#6960) but we need more detail on the mbedtls_ssl_setup error code to identify the problem.

'Web Client Rebuild' group is also seeing some '[HTTPS:E] SSL handshake failed.', we need more info to determine if it's related to the bug report above or something unrelated.
@thebentern thebentern merged commit b78f12c into meshtastic:master Mar 7, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants

X Tutup