File node-llhttp9.3.patch of Package nodejs-electron

From 4454d09e8f7225ec1b576ef86c8705bca63a136c Mon Sep 17 00:00:00 2001
From: Fedor Indutny <238531+indutny@users.noreply.github.com>
Date: Wed, 7 May 2025 07:21:52 -0700
Subject: [PATCH] deps: update llhttp to 9.3.0
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

llhttp@9.3.0 optimizes header value parsing on ARM Neon/WASM, and adds
support for a protocol callback for use outside of the typical HTTP
setting (RTSP/ICE).

PR-URL: https://github.com/nodejs/node/pull/58144
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
---
 deps/llhttp/CMakeLists.txt                    |    7 +-
 deps/llhttp/LICENSE                           |   22 +
 deps/llhttp/README.md                         |    9 +-
 deps/llhttp/include/llhttp.h                  |   10 +-
 deps/llhttp/libllhttp.pc.in                   |    8 +-
 deps/llhttp/src/api.c                         |   45 +-
 deps/llhttp/src/llhttp.c                      | 2841 ++++++++---------
 src/node_http_parser.cc                       |    6 +
 test/parallel/test-http-client-parse-error.js |    2 +-
 9 files changed, 1459 insertions(+), 1491 deletions(-)
 create mode 100644 deps/llhttp/LICENSE

diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index acebdd952eb943..25aa204ee2c851 100644
--- a/third_party/electron_node/src/node_http_parser.cc
+++ b/third_party/electron_node/src/node_http_parser.cc
@@ -1204,6 +1204,10 @@ void ConnectionsList::Expired(const FunctionCallbackInfo<Value>& args) {
 
 const llhttp_settings_t Parser::settings = {
     Proxy<Call, &Parser::on_message_begin>::Raw,
+
+    // on_protocol
+    nullptr,
+
     Proxy<DataCall, &Parser::on_url>::Raw,
     Proxy<DataCall, &Parser::on_status>::Raw,
 
@@ -1223,6 +1227,8 @@ const llhttp_settings_t Parser::settings = {
     Proxy<DataCall, &Parser::on_body>::Raw,
     Proxy<Call, &Parser::on_message_complete>::Raw,
 
+    // on_protocol_complete
+    nullptr,
     // on_url_complete
     nullptr,
     // on_status_complete
openSUSE Build Service is sponsored by