summaryrefslogtreecommitdiff
path: root/9ns/src/bridge.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-30 13:14:53 -0300
committerGabriel Schneider <[email protected]>2026-09-30 13:15:05 -0300
commit705be665742fa0332585a4321640b5e2245610cb (patch)
treee3953d65327e58cfefcaad8935fcf68487a8cae0 /9ns/src/bridge.zig
parent4af5c9594a5e69a09d452d037d1c89ade5691475 (diff)
downloadcloud9-705be665742fa0332585a4321640b5e2245610cb.tar.gz
cloud9-705be665742fa0332585a4321640b5e2245610cb.zip
9ns: a mount's tag window and worker pool are 256, wider than a server parks per connection, so held reads no longer deadlock it
Every read a server parks holds one of the session's tags and pins one bridge worker. With 32 tags and 31 workers, 31 held event reads (a follower each) took every worker. The next READ, even `cat layout`, queued behind them forever, so the whole mount hung. The window is now 256 tags and 255 workers, more than pardes parks per connection (128, past which it refuses "too many reads waiting: 128" and so frees the worker). A mount can then hold everything such a server parks and still serve the rest. Workers are still started only as needed. The multiplexing test's fake server (cloud9.Server, 64 requests in flight) cannot park 256. A runtime Session.window, which defaults to max_tags, lets it fill a window of 32 the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to '9ns/src/bridge.zig')
0 files changed, 0 insertions, 0 deletions