memoryweave/go
xiaowei cd49a2801a fix(ws): add per-conn mutex to prevent concurrent WriteJSON panic
Root cause: Broadcast() and Push() launched multiple goroutines
writing to the same websocket.Conn simultaneously. Gorilla websocket
does not support concurrent WriteMessage/WriteJSON.

Fix: add connMu sync.Map (*websocket.Conn → *sync.Mutex) to WSManager.
Each WriteJSON now goes through writeWithLock() which acquires the
per-conn mutex. Unregister() also acquires the lock before Close()
to prevent write/close races.

No functional changes to API surface.
2026-05-30 17:15:19 +08:00
..
client v3.8 完整代码: Go API + Rust sidecar + ONNX BGE + Client SDK 2026-05-29 01:07:05 +08:00
cmd/zhiyid
internal fix(ws): add per-conn mutex to prevent concurrent WriteJSON panic 2026-05-30 17:15:19 +08:00
proto
static fix: Search IPC 捕获 created_at/updated_at,recall 时间戳不再为零值 2026-05-30 10:31:25 +08:00
go.mod feat: Prometheus 监控集成 — /metrics 端点 + 14 指标 + 8 告警规则 2026-05-29 02:51:46 +08:00
go.sum feat: Prometheus 监控集成 — /metrics 端点 + 14 指标 + 8 告警规则 2026-05-29 02:51:46 +08:00
integration_test.go
zhiyid-new feat: 自优化第二轮 — 待办5项全部补齐 2026-05-30 12:44:50 +08:00