fix(esp_tls): check tls connection finished before read/write operation

This commit is contained in:
Ashish Sharma
2026-04-09 14:09:31 +08:00
parent 4457821b9a
commit 25c0c9da24
3 changed files with 30 additions and 4 deletions
+1
View File
@@ -1196,6 +1196,7 @@ int esp_mbedtls_server_session_create(esp_tls_cfg_server_t *cfg, int sockfd, esp
return ESP_ERR_ESP_TLS_SERVER_HANDSHAKE_TIMEOUT;
}
}
tls->conn_state = ESP_TLS_DONE;
return ret;
}