Read the front page's listing in each request that needs it, never joining another request's read
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The Project DO adapter kept its listing of made projects with Effect.cached, built once per isolate. Every call that met a project name not yet known while the first read was under way joined that read's fiber, which ran on the first request's I/O. On Workers a request that awaits another request's I/O is taken for hung and cancelled, so a fresh isolate hit by a fan-out (the Code tab's per-path log reads, about fifteen at once) cancelled every request but the first with "code had hung and would never generate a response", and the web's folder page answered 500. A first request whose client left would have left the run unfinished for the isolate's life. Each request now reads the listing itself until one has kept it; the kept names still spare the probe, as before. The test holds the first read open forever and asks again: before the fix the second call waited on it.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+82 added−17 removed
- tests:+58 added−1 removed
- other:+24 added−16 removed