matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Context not propagated in daemon refresh goroutine

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Refresh handler at daemon/handler.go:156 spawns goroutine without context. If client disconnects, goroutine runs forever.

To reproduce

  1. Start folder refresh
  2. Kill client immediately
  3. Goroutine continues fetching, never cleaned up

Expected behavior Pass context to goroutine, cancel on client disconnect

Matcha version master

OS All

Additional context File: daemon/handler.go line 156 Resource leak on client disconnect

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot