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 7e64e6e
Browse filesBrowse the repository at this point in the historyBrowse files
feat: acceptor plus K reactor threads with socket hand-off inbox
Server::run now runs an acceptor (the calling thread) plus K reactor threads
(threads=0 -> hardware_concurrency). Accepted sockets move to a reactor over a
mutex-guarded inbox woken by net::Wakeup (POSIX socketpair; Windows loopback
pair) - a Connection is owned by exactly one reactor, so connection state
stays lock-free. Round-robin placement; deadlines, backpressure and drain-then-
drop stop are per-reactor.
Fix found on the Linux gate: SIGINT turns accept poll into EINTR; the error
path used to join reactors and the normal stop path joined them again ->
pthread_join EINVAL out of run(). Interrupted now just re-checks stop, and
stopAll joins only joinable threads.
Tests: cross-reactor keep-alive (12 conns / 4 reactors), stop-drain across all
reactors, pipelined storm with interleaved fresh clients - all under CI TSan.
Linux gates re-run under Docker Desktop after podman/VS disappeared from this
machine; clang-format now invoked via LLVM path in the local gate.
| ✓ |~~`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
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|
| H |`feature/hardening`| slow-body limit, smuggling corpus, soak (pipelining + slow-client tests landed with S) | ASan clean; 60 s soak flat RSS on Linux |
0 commit comments