Files
Jacky ba2bbe3ac2 fix: resolve concurrent map iteration and map write crash in sitecheck (#1661)
Fixed fatal error 'concurrent map iteration and map write' that caused
nginx-ui nodes to crash and become unresponsive.

The issue occurred when the sitecheck CollectSites() method iterated over
site.IndexedSites while the cache scanner's scanForSite() was concurrently
modifying the same map. This race condition caused sporadic crashes.

Solution:
- Added GetAllIndexedSites() function in internal/site/index.go that safely
  returns a snapshot copy of the IndexedSites map while holding the read lock
- Modified CollectSites() in internal/sitecheck/checker.go to use this
  thread-safe function instead of directly accessing the global map

Fixes #1673

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-05-06 11:28:57 +08:00
..
2026-02-07 21:38:44 +08:00
2025-11-07 18:23:23 +08:00
2026-04-28 12:36:18 +08:00
2026-04-27 12:22:46 +08:00
2025-10-03 14:33:07 +08:00
2026-04-21 22:40:50 +08:00
2026-04-15 23:26:19 +08:00
2025-10-03 14:33:07 +08:00