Skip to content

mbedtls_ssl_handshake() hangs #182

@ole-johan

Description

@ole-johan

I am working on an application based on the 'http_get_mbedtls' example to push data to a server using TLS. It is all working quite well most of the time, but sometimes the call to mbedtls_ssl_handshake() never returns. Other tasks keep running. I can have several hundred successful calls, and then one that hangs.
Should it block like this, or is there a way to add a timeout to this call?

Attached are two log files, one of a successful call and the other when the call hangs.
It seems to happen around here:

ssl_cli.c:2944: client state: 10
...
ssl_tls.c:2429: message length: 6, out_left: 6
HANG

log_success.txt
log_failed.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions