Commit 5a3f45a
[C] Add ringzero-ws - WebSocket (#815)
* [C] Add ringzero-ws - WebSocket
Hand-rolled WebSocket echo server on raw io_uring (liburing), with no
WebSocket library. Multishot accept + multishot recv into a provided
buffer ring give zero-copy ingest; the RFC 6455 handshake (with
from-scratch SHA-1 + base64), frame parser/masking, and batched echo
write path are implemented directly against io_uring completions. One
ring per core with SO_REUSEPORT, matching the ringzero engine.
Subscribes to echo-ws and echo-ws-pipeline. Passes validate-ws.py (7/7)
plus large-frame / pipelined / concurrent stress tests via the Docker
build.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Benchmark results: ringzero-ws
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent b418f06 commit 5a3f45a
17 files changed
Lines changed: 932 additions & 3 deletions
File tree
- frameworks/ringzero-ws
- site
- data
- static/logs
- echo-ws-pipeline
- 16384
- 4096
- 512
- echo-ws
- 16384
- 4096
- 512
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments