Synss / python-mbedtls

Cryptographic library with an mbed TLS back end
MIT License
79 stars 28 forks source link

DTLS Handshake Timeout #34

Closed NovaNekmit closed 3 years ago

NovaNekmit commented 3 years ago

NOTE: Please use stackoverflow for support questions. This repository's issues are reserved for feature requests and bug reports.

I am submitting a …

Description

I am trying to use DTLS for a high-latency connection (30s+), which doesn't work because the client keeps retrying the handshake with way to short delays for my application (the default is 1-60s).

Current behavior

handshake timeout is not configurable (parameter commented out here: https://github.com/Synss/python-mbedtls/blob/master/src/mbedtls/tls.pyx#L777)

Expected behavior

handshake timeout is configurable (somehow, preferably in DTLSConfiguration)

Binding: mbedtls_ssl_conf_handshake_timeout

Synss commented 3 years ago

Thank you for your message. That looks easy enough. I will see what I can do.

Synss commented 3 years ago

Should now be in master. If you want to test it, you need to install from source. I should probably keep the build artefacts but now I do not. In any case, this feature will be part of the next release. Do not hesitate to comment here if it works for you.

NovaNekmit commented 3 years ago

Thanks for the quick response, works great :+1: