Merge branch 'bugfix/tcp_iperf_example_issue_for_4.4' into 'release/v4.4'

wifi:bugfix for iperf issue(backport v4.4)

See merge request espressif/esp-idf!17334
This commit is contained in:
Mahavir Jain 2022-03-04 11:15:11 +08:00
commit 103cab3664

View File

@ -267,6 +267,10 @@ static esp_err_t IRAM_ATTR iperf_run_tcp_server(void)
socket_recv(client_socket, listen_addr, IPERF_TRANS_TYPE_TCP);
exit:
if (client_socket != -1) {
close(client_socket);
}
if (listen_socket != -1) {
shutdown(listen_socket, 0);
close(listen_socket);