Wire context cancellation through the toolsrv 9P server so that canceling a CallTool context properly terminates the running tool. Changes: - virtfs: Add Close() to File interface with CloseFn for Request handlers - toolsrv/p9.go: Handle requests concurrently to allow Tclunk during blocking Twrite; call entry.Close() in handleClunk - toolsrv/internal/server/proc.go: Check ctx.Done() while waiting for tool completion in NewProc - Integration tests for context cancellation chain The cancellation chain: client cancels ctx → fid.Close() → Tclunk → handleClunk calls entry.Close() → closeFn cancels reqCtx → NewProc sees ctx.Done() and returns ctx.Err() |
||
|---|---|---|
| .. | ||
| ollie-9p | ||
| olliesrv | ||
| toolsrv | ||