删除多连接内容,只支持单连接
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user