From fd36a8dadba7fcbd74f0ab82a8ee1b3150ce5167 Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Wed, 12 Oct 2022 00:30:01 +0200 Subject: [PATCH] deps: update llhttp to 8.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/44967 Reviewed-By: Michaƫl Zasso Reviewed-By: Matteo Collina Reviewed-By: Rafael Gonzaga Reviewed-By: Darshan Sen Reviewed-By: Beth Griggs --- deps/llhttp/CMakeLists.txt | 2 +- deps/llhttp/README.md | 235 ++ deps/llhttp/include/llhttp.h | 258 +- deps/llhttp/src/api.c | 89 +- deps/llhttp/src/llhttp.c | 6236 +++++++++++++++++++++++----------- src/node_http_parser.cc | 63 +- tools/update-llhttp.sh | 2 +- 7 files changed, 4909 insertions(+), 1976 deletions(-) diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index 6dbc8b806dc4..ce658bac6fab 100644 --- a/third_party/electron_node/src/node_http_parser.cc +++ b/third_party/electron_node/src/node_http_parser.cc @@ -1148,28 +1148,51 @@ void ConnectionsList::Expired(const FunctionCallbackInfo& args) { } const llhttp_settings_t Parser::settings = { - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - Proxy::Raw, - - // on_url_complete - nullptr, - // on_status_complete - nullptr, - // on_header_field_complete - nullptr, - // on_header_value_complete - nullptr, + Proxy::Raw, + Proxy::Raw, + Proxy::Raw, + + // on_method + nullptr, + // on_version + nullptr, + + Proxy::Raw, + Proxy::Raw, + + // on_chunk_extension_name + nullptr, + // on_chunk_extension_value + nullptr, + + Proxy::Raw, + Proxy::Raw, + Proxy::Raw, + + // on_url_complete + nullptr, + // on_status_complete + nullptr, + // on_method_complete + nullptr, + // on_version_complete + nullptr, + // on_header_field_complete + nullptr, + // on_header_value_complete + nullptr, + // on_chunk_extension_name_complete + nullptr, + // on_chunk_extension_value_complete + nullptr, + + Proxy::Raw, + Proxy::Raw, + + // on_reset, + nullptr, }; - void InitializeHttpParser(Local target, Local unused, Local context,