mirror of
https://github.com/espressif/esp-idf
synced 2025-03-11 10:09:08 -04:00
Merge branch 'bugfix/tcp_transport_err_propagate' into 'master'
tcp_transport: Fix error propagation on tcp_read() Closes IDFGH-8549, IDF-6202, and ESPAT-1346 See merge request espressif/esp-idf!20913
This commit is contained in:
commit
b5f69e5fb7
@ -291,6 +291,8 @@ static int tcp_read(esp_transport_handle_t t, char *buffer, int len, int timeout
|
||||
esp_transport_capture_errno(t, errno);
|
||||
if (errno == EAGAIN) {
|
||||
ret = ERR_TCP_TRANSPORT_CONNECTION_TIMEOUT;
|
||||
} else {
|
||||
ret = ERR_TCP_TRANSPORT_CONNECTION_FAILED;
|
||||
}
|
||||
} else if (ret == 0) {
|
||||
if (poll > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user