Bypass parsing HTTP request on HttpSM when request is HTTP/2
Open
HTTP/2
HTTP/3
Performance
- Dominant language
- C++
- Stars
- 2k
- Forks
- 874
- Avg merge
- 6d 15h
- Merged PRs (30d)
- 46
Description
When Http2Stream passes HTTP request to HttpSM, it dump HTTP/1.1 request header in text from HTTPHdr. HttpSM needs to parse the text and build HTTPHdr again. I'm not sure how much this has performance overhead. But, obviously, this is not ideal. Currently, HTTP/3 impl is following same logic.
https://github.com/apache/trafficserver/blob/089316d6e2926a2bd9c9c4dfd828fe0292bfd7c0/proxy/http2/Http2Stream.cc#L166
Contributor guide
Assessment
This issue has not been assessed yet.