Commit 54b2b68
committed
api-test-ws-h2-txcredit: ws-over-h2 tx flow-control selftest
A ws server vhost and an RFC 8441 h2 ws client in one process. The
server bulk-sends a 64KB pattern in 1KB lws_write() chunks gated only
on lws_send_pipe_choked(), like typical user code; the client connects
with LCCSCF_H2_MANUAL_RXFLOW and drip-feeds tx credit in 1KB
WINDOW_UPDATE quanta, forcing the h2 role to park DATA and split
frames to fit the window.
Fails (within a second) if the connection doesn't come up as genuine
ws-over-h2, if the client ever receives more ws payload than it has
granted credit for -- only possible when the server ignored the peer's
window -- or if the pattern is corrupted / incomplete; passes when the
whole transfer arrives in-window. Wired into ctest like the other
api-tests.1 parent bf6902a commit 54b2b68
2 files changed
Lines changed: 428 additions & 0 deletions
Lines changed: 36 additions & 0 deletions
| 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 | + | |
0 commit comments