Skip to content

Commit

Permalink
Merge branch 'bugfix/tcp_transport_err_propagate_v5.0' into 'release/…
Browse files Browse the repository at this point in the history
…v5.0'

tcp_transport: Fix error propagation on tcp_read() (v5.0)

See merge request espressif/esp-idf!21203
  • Loading branch information
david-cermak committed Nov 25, 2022
2 parents 9e88f79 + 3caeaec commit 5f25bd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/tcp_transport/transport_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5f25bd8

Please sign in to comment.