SABITHSAHEB commented on PR #14009: URL: https://github.com/apache/trafficserver/pull/14009#issuecomment-6889885361
Rebased onto master; the new test now goes through `decode_on_event_thread()`. On the hang: neither QUIC backend can reset a single stream yet (`QUICStream::reset()` and `QUICStreamManager::reset_stream()` are empty), so I used the same connection close that `_process_write_vio()` already falls back to, which is also what HTTP/2 does with ENHANCE_YOUR_CALM. `_decode_header()` now returns a distinct code for an oversized section, QPACK reports it as `QPACK_EVENT_DECODE_FIELD_SECTION_TOO_LARGE`, and the connection is closed with H3_EXCESSIVE_LOAD. Malformed sections, and the failures `decode()` returns synchronously (bad Required Insert Count, too many blocked streams), close with QPACK_DECOMPRESSION_FAILED. I also moved the default to 32768 to match `proxy.config.http2.max_header_list_size`, since a connection close is a harsher outcome than a 431 for a browser with a few KB of cookies. If you'd rather answer 431, that needs a way to hand the status to HttpSM (nothing in the tree produces a 431 today). I can do that here or as a follow-up. The decoder is now built from all three configured values. `header_table_size` and `qpack_blocked_streams` are clamped to 16 bits, because QPACK stores them as `uint16_t` and passing them straight through would truncate. The SettingsHandler comment now uses your wording. The test limit is `38 * 107`, so the passing case sits exactly on it, and with `>=` the 107-cookie case fails. Tested on OpenSSL 3.5.9 native QUIC, Debug with -Werror: test_http3 and test_qpack pass (30/30). Against a running traffic_server, with an aioquic client sending hand-encoded HEADERS: 10 x 3000-byte cookies get a 200, 11 get CONNECTION_CLOSE 0x107 immediately, 2000 empty cookies get 0x107, an out-of-range static index gets 0x200, and new connections afterwards still get a 200. With `header_table_size: 4096` and `qpack_blocked_streams: 16`, a block with Required Insert Count 1 is held as blocked; with the defaults it's refused with 0x200. I didn't run the Uranium suite. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
