mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
700976f709
Basically, in the portability layer, it is checked if the socket is NON-block, and if not, then even the EAGAIN and EWOULDBLOCK errors are diverted to a RECV error. This causes a problem for sockets with receive timeouts set. When such a timeout is set, the condition for NON_BLOCK isn't met and hence a hard error is returned. Searching for EAGAIN and EWOULDBLOCK in lwip returns only 3 results (accept, recvfrom, close) and all of them look to be genuine cases for EWOULDBLOCK. So removing this check to make receive timeout with TLS work. |
||
---|---|---|
.. | ||
include | ||
esp_bignum.c | ||
esp_hardware.c | ||
esp_mem.c | ||
esp_sha1.c | ||
esp_sha256.c | ||
esp_sha512.c | ||
mbedtls_debug.c | ||
net_sockets.c |