Commit c3f41fb
committed
feat: production hardening and code separation
- Stack-allocate request bodies ≤64KB to avoid malloc in hot path
- Only cache body if module exports on_request_body handler
- Track heap allocation in proxy_ctx for correct cleanup
- Split proxy_wasm.c (2670→1256 lines) into focused modules:
- proxy_wasm_mem.h: shared memory helper inlines
- proxy_wasm_headers.c: header map operations
- proxy_wasm_properties.c: property get/set
- proxy_wasm_http.c: HTTP callout with anti-IP-rebinding
- All 16 tests passing1 parent eeb4993 commit c3f41fb
10 files changed
Lines changed: 1569 additions & 2344 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments