You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d988462
Browse filesBrowse the repository at this point in the historyBrowse files
feat: single-threaded poll reactor with graceful shutdown and per-OS signals
server::Server reactor (accept batch, deadline table -> 408, POLLOUT backpressure, drain-then-drop stop with grace cap) + server::Connection (socket + RequestParser + out buffer; protocol errors answered once best-effort then dropped). Connection stays reactor-owned; no shared state yet.
app::ShutdownSignals: Linux self-pipe (pipe2, instant poll wake); Windows console-control handler sets flag and blocks until notifyStopped (a returning handler means exit-now), reactor pollCap 100ms. CMake TSAN option; CI linux-tsan job (native runner: kernel containers cannot set vm.mmap_rnd_bits TSan needs). SIGINT graceful-stop smoke added to the container gate.
Traps: TSan FATALs on kernel 6.x containers (unexpected memory mapping) until vm.mmap_rnd_bits=28; accepted-socket index bug — new conns join next poll, not the live fd set; test race where stop beat accept (backlog RST != EOF) fixed by serving one request first.
| ✓ |~~`feature/posix-socket-layer`~~| The seam: portable `net/` API + `raw_win`/`raw_posix` backends; `accept4` + `MSG_NOSIGNAL` + `EINTR`; cross-platform socket tests; Docker gate builds whole Linux tree | merged — both gates green |
175
175
| C |`feature/ci-matrix`| Actions matrix: Linux job = sanitizer container (`tools/asan-inside.sh`), Windows = native MinGW + ctest | merged — PR #5 gated itself green on first run |
176
-
| R |`feature/reactor-and-connection`| poll loop, connection state machine, hand-off inbox, timeouts, buffering, signals (win + posix), graceful shutdown — all single-source except `app/signals_*`| integration: in-memory 200, keep-alive, 408 idle, Ctrl-C/SIGTERM exit 0; **TSan job added and green**|
176
+
| R |`feature/reactor-and-connection`| single-threaded poll reactor: connection state machine, timeouts (408), POLLOUT backpressure, signals (self-pipe / console ctrl), graceful drain | merged — 200/keep-alive/408/400/stop integration tests; ASan + TSan green; SIGINT-exit-0 smoke in the Linux gate |
177
+
| T |`feature/reactor-threading`| acceptor thread + K reactors + hand-off inbox; `Connection` stays owned by one reactor | TSan green on concurrent tests; RSS stays flat |
177
178
| S |`feature/static-files`| root mapping, traversal guard, MIME, index, 404/405, error pages (`std::filesystem`) | status-by-status integration tests; traversal rejected on both OSes |
| H |`feature/hardening`| pipelining, slow-body limit, max-body/max-heads, request-smuggling corpus, soak | pipelined + slow-client tests; ASan clean; 60 s soak flat RSS on Linux |
180
181
| D |`feature/docs-and-benchmark`| README (build/run per OS, limits), load script, numbers | documented; req/s + RSS recorded on both platforms |
181
182
182
183
Then `release/0.1.0` → `develop` + PR to `main` (approval required) → tag `v0.1.0`.
183
-
C is next; R needs C.
184
+
R merged single-threaded; S (static files) stacks on it — T (threading) can land after S.
0 commit comments