From 12c878746fc0e45f2388a7f5139ad943959ada64 Mon Sep 17 00:00:00 2001 From: happyharryh <36951436+happyharryh@users.noreply.github.com> Date: Thu, 25 Dec 2025 10:31:37 +0800 Subject: [PATCH 1/2] Fix `Phy::whack()` not working --- osdep/Phy.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 11cbe4c05..1d2c8b035 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -207,6 +207,7 @@ template class Phy { _whackSendSocket = pipes[1]; _noDelay = noDelay; _noCheck = noCheck; + FD_SET(_whackReceiveSocket, &_readfds); } ~Phy() From bf50475a961277a4fe5b6220e34899dceb921509 Mon Sep 17 00:00:00 2001 From: happyharryh <36951436+happyharryh@users.noreply.github.com> Date: Thu, 25 Dec 2025 10:31:37 +0800 Subject: [PATCH 2/2] Fix HTTPControlPlane thread may not be joined --- service/OneService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/OneService.cpp b/service/OneService.cpp index 227b575f7..e7a91aa2d 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -1014,12 +1014,12 @@ class OneServiceImpl : public OneService { curl_global_cleanup(); #endif - _controlPlane.stop(); if (_serverThreadRunning) { + _controlPlane.stop(); _serverThread.join(); } - _controlPlaneV6.stop(); if (_serverThreadRunningV6) { + _controlPlaneV6.stop(); _serverThreadV6.join(); } _rxPacketVector_m.lock();