Commit 345b09c
Claude Dev
fix: ReleaseIO/ReleaseCPU non-blocking to prevent hang on double-release
When a test connects twice (setupRoundtripEnv + setupRoundtripEnvFromPath),
both connections register wrapWithResourceMonitor Cleanups. Each Cleanup
calls ReleaseIO, but only the first connection AcquireIO'd. The second
ReleaseIO blocks forever on the full token bucket.
Fix: non-blocking select with default — overflow releases are safely dropped.1 parent f40db03 commit 345b09c
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
54 | 62 | | |
55 | 63 | | |
56 | 64 | | |
| |||
0 commit comments