Skip to content

quiche: Implement http2 macros#6567

Merged
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
danzh2010:http2_macro
Apr 12, 2019
Merged

quiche: Implement http2 macros#6567
mattklein123 merged 3 commits intoenvoyproxy:masterfrom
danzh2010:http2_macro

Conversation

@danzh2010
Copy link
Contributor

Implement HTTP2_DIE_IF_NULL and HTTP2_UNREACHABLE: https://quiche.googlesource.com/quiche/+/refs/heads/master/http2/platform/api/http2_macros.h
This two interfaces doesn't have clear documentation about their usage. But at a glance, HTTP2_DIE_IF_NULL(ptr) is used as a function to check if passed-in argument is a nullptr, if not return the pointer, see its usage in chromium code: https://cs.chromium.org/chromium/src/net/third_party/quiche/src/http2/hpack/decoder/hpack_whole_entry_buffer.cc?type=cs&g=0&l=22, and HTTP2_UNREACHABLE() is used as a function too: https://cs.chromium.org/chromium/src/net/third_party/quiche/src/http2/decoder/http2_frame_decoder.cc?rcl=9e84364c1893473f994688884920e9a32d7e02df&l=73

Risk Level: low
Testing: Added new test in test/extensions/quic_listeners/quiche/platform:http2_platform_test
Part of #2557

Signed-off-by: Dan Zhang <danzh@google.com>
Signed-off-by: Dan Zhang <danzh@google.com>
Signed-off-by: Dan Zhang <danzh@google.com>
@danzh2010
Copy link
Contributor Author

/assign @mattklein123

@mattklein123 mattklein123 merged commit 8a5a32b into envoyproxy:master Apr 12, 2019
@danzh2010 danzh2010 changed the title Implement http2 macros quiche: Implement http2 macros Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants