0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/guides/maintaining-ngtcp2-nghttp3.md
Rich Trott 7407fc2aea doc: update code language flag for internal doc
Use `bash` instead of `shell` for code language flag in
doc/guides/maintaining-ngtcp2-nghttp3.md to conform with our other docs
and upcoming lint requirements.

PR-URL: https://github.com/nodejs/node/pull/33852
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
2020-06-18 06:05:32 -07:00

1.5 KiB

Maintaining ngtcp2 and nghttp3

The ngtcp2 and nghttp3 libraries form the foundation of the QUIC implementation. They are acquired from the ngtcp2/ngtcp2 and ngtcp2/nghttp3 repositories on GitHub.

ngtcp2 and nghttp3 are tightly related. They will typically be updated together.

Updating ngtcp2

Update ngtcp2:

git clone https://github.com/ngtcp2/ngtcp2
cd ngtcp2
autoreconf -i
./configure --enable-lib-only
cd ..
cp -R ngtcp2/crypto node/deps/ngtcp2
cp -R ngtcp2/lib node/deps/ngtcp2

The autoreconf -i and ./configure --enable-lib-only commands ensure that the necessary template files (such as version.h.in located in lib/includes/ngtcp2/ are processed appropriately.

Check that Node.js still builds and tests.

Updating nghttp3

Update nghttp3:

git clone https://github.com/ngtcp2/nghttp3
cd nghttp3
autoreconf -i
./configure --enable-lib-only
cd ..
cp -R nghttp3/lib node/deps/nghttp3

The autoreconf -i and ./configure --enable-lib-only commands ensure that the necessary template files (such as version.h.in located in lib/includes/ngtcp2/ are processed appropriately.

Check that Node.js still builds and tests.

Commiting ngtcp2 and nghttp3

Use: git add --all deps/ngtcp2 and git add --all deps/nghttp3

Commit the changes with a message like

deps: update ngtcp2 and nghttp3

Updated as described in doc/guides/maintaining-ngtcp2-nghttp3.md.