From 948b7062629bca2d0bae0e65df00f2d651207980 Mon Sep 17 00:00:00 2001 From: Johnathon Slightham Date: Wed, 8 Oct 2025 17:35:32 -0400 Subject: [PATCH] Fix watchdog timeout --- components/rpc/TCPServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/rpc/TCPServer.cpp b/components/rpc/TCPServer.cpp index 23eaffc..9660926 100644 --- a/components/rpc/TCPServer.cpp +++ b/components/rpc/TCPServer.cpp @@ -124,6 +124,7 @@ TCPServer::~TCPServer() { const auto that = static_cast(args); while (true) { + vTaskDelay(1 / portTICK_PERIOD_MS); // Avoid starving other threads fd_set readfds; FD_ZERO(&readfds); int max_fd = -1; @@ -135,7 +136,7 @@ TCPServer::~TCPServer() { } xSemaphoreGive(that->m_mutex); - timeval timeout = {1, 0}; // 1 second timeout + timeval timeout = {0, 100000}; // 100 ms timeout int ret = select(max_fd + 1, &readfds, nullptr, nullptr, &timeout); if (ret > 0) {