Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.16 KB

maintaining-nghttp2.md

File metadata and controls

46 lines (34 loc) · 1.16 KB

Maintaining nghttp2 in Node.js

The low-level implementation of HTTP2 is based on nghttp2. Updates are pulled into Node.js under deps/nghttp2 as needed.

The low-level implementation is made available in the Node.js API through JavaScript code in the lib directory and C++ code in the src directory.

Step 1: Updating nghttp2

The tools/update-nghttp2.sh script automates the update of the postject source files.

In the following examples, x.y.z should match the nghttp2 version to update to.

$ ./tools/update-nghttp2.sh x.y.z

Step 2: Test the build

$  make test-http2

Step 3: Commit new nghttp2

$ git add -A deps/nghttp2
$ git commit -m "deps: upgrade nghttp2 to x.y.z"

Step 4: Update licenses

$ ./tools/license-builder.sh
# The following commands are only necessary if there are changes
$ git add .
$ git commit -m "doc: update nghttp2 LICENSE using license-builder.sh"