Mbed-TLS / mbedtls

An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases.
https://www.trustedfirmware.org/projects/mbed-tls/
Other
5.03k stars 2.51k forks source link

Use poll instead of select #9230

Open wolfpld opened 3 weeks ago

wolfpld commented 3 weeks ago

Suggested enhancement

mbedtls currently uses select() to get the status of sockets. This has known limitations, e.g. as described in check_fd(). A more capable alternative is to use poll(), which doesn't have such limitations. Is there a reason select() is still being used?

Justification

Mbed TLS needs this to be more robust with what is supported.