[v18.x] deps: update nghttp2 to 1.57.0
This is a backport to Node.js 18 of:
- https://github.com/nodejs/node/pull/47997
- https://github.com/nodejs/node/pull/48746
- https://github.com/nodejs/node/pull/48790
- https://github.com/nodejs/node/pull/49582
- https://github.com/nodejs/node/pull/50121
Node.js 18.18.0 went out with the nghttp2 1.55.0 update (https://github.com/nodejs/node/pull/48746) but without first applying the nghttp2 1.53.0 update (https://github.com/nodejs/node/pull/47997). https://github.com/nodejs/node/pull/47997 was blocked because it depended on part of https://github.com/nodejs/node/pull/46965.
I've reverted the ngthttp2 1.55.0 commit on v18.x-staging, and then re-cherry-picked the nghttp2 update commits from main, fixing up conflicts along the way. For https://github.com/nodejs/node/pull/47997 that involved manually fixing up nghttp2.gyp
.
Subsequent updates had conflicts in doc/contributing/maintaining/maintaining-dependencies.md
because we haven't backported https://github.com/nodejs/node/pull/48081 -- for these I've undone the changes to the maintaining-dependencies.md
file via:
git checkout --ours HEAD -- doc/contributing/maintaining/maintaining-dependencies.md