From afcd21ffc3ad4b351bb9252f57a0344e31a5d790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=A0=E8=BE=9C=E7=9A=84=E7=86=8A=E6=9C=AC=E7=86=8A?= <10804640+innocent-kumamoto@user.noreply.gitee.com> Date: Fri, 10 May 2024 16:46:05 +0800 Subject: [PATCH] update --- src/simplehttpd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/simplehttpd.c b/src/simplehttpd.c index 2035672..61e9e73 100644 --- a/src/simplehttpd.c +++ b/src/simplehttpd.c @@ -530,7 +530,10 @@ int StartHttpServerSync(const char *ip, uint16_t port) client_sock = accept(server_sock, (struct sockaddr *)&client_name, &client_name_len); if (client_sock == -1) { - HTTPD_LOG_ERROR("accept failed, %d, %s.", errno, strerror(errno)); + if (errno != EAGAIN) + { + HTTPD_LOG_ERROR("accept failed, %d, %s.", errno, strerror(errno)); + } continue; } -- Gitee