删除多连接内容,只支持单连接

This commit is contained in:
2026-08-25 12:41:33 +08:00
parent d6bc3f6253
commit 0a707034cc
10 changed files with 109 additions and 507 deletions

View File

@@ -1790,7 +1790,7 @@ void StartCh395fTestTask(void *argument)
DBG_INFO("Test task: bound to port 8080");
}
if (net_listen(sockfd, 0) < 0) {
if (net_listen(sockfd) < 0) {
DBG_ERROR("Test task: net_listen failed");
goto task_end;
}
@@ -1854,7 +1854,7 @@ void StartCh395fTestTask(void *argument)
DBG_INFO("Test task: connection closed, re-listen...");
net_close(sockfd);
osDelay(500);
net_listen(sockfd, 0);
net_listen(sockfd);
phase_active = 0;
}
}