Documentation
¶
Overview ¶
server is a minimal HTTP server used only by scripts/bench.sh: it binds an ephemeral port (never 8000-8003, reserved for the conformance harness), answers every request with a small fixed JSON body, and prints "PORT=<n>" on its own line to stdout so the caller can read it back. The caller is responsible for killing it (e.g. `kill $PID` in a trap); it does not watch stdin, since a background job's stdin is often already at EOF, which would exit it immediately.
Click to show internal directories.
Click to hide internal directories.