Commit Graph

8446 Commits

Author SHA1 Message Date
Tatsuhiro Tsujikawa
62c12b673b Merge pull request #2492 from nghttp2/ngtcp2-crypto-libressl
Adopt libngtcp2_crypto_libressl changes
2025-08-25 19:16:15 +09:00
Tatsuhiro Tsujikawa
9ba0b7fde0 Adopt libngtcp2_crypto_libressl changes 2025-08-25 18:26:10 +09:00
Tatsuhiro Tsujikawa
f9f5db5b6a Merge pull request #2491 from nghttp2/adopt-ngtcp2-nghttp3-features
Adopt ngtcp2 nghttp3 features
2025-08-24 21:20:57 +09:00
Tatsuhiro Tsujikawa
7ef3a91d9b src: Adopt ngtcp2_conn_write_aggregate_pkt, require ngtcp2 >= v1.15.0 2025-08-24 20:52:11 +09:00
Tatsuhiro Tsujikawa
e435050378 src: Specify nghttp3_rand callback, require nghttp3 >= v1.11.0 2025-08-24 19:10:49 +09:00
Tatsuhiro Tsujikawa
8f5b450237 Merge pull request #2490 from nghttp2/bump-ngtcp2
Bump ngtcp2 and its dependencies
2025-08-24 12:04:15 +09:00
Tatsuhiro Tsujikawa
5f5fdc780f Bump ngtcp2 and its dependencies 2025-08-24 11:16:06 +09:00
Tatsuhiro Tsujikawa
fd48570e7f Merge pull request #2489 from nghttp2/fix-test-assertions
tests: Swap the positions of expected and actual values
2025-08-24 11:15:35 +09:00
Tatsuhiro Tsujikawa
daa4260f61 tests: Swap the positions of expected and actual values 2025-08-24 10:44:30 +09:00
Tatsuhiro Tsujikawa
451853f39b Merge pull request #2488 from nghttp2/configurable-glitch-counter
Make glitch counter configurable
2025-08-24 10:43:54 +09:00
Tatsuhiro Tsujikawa
dfab53ef65 Make glitch counter configurable 2025-08-23 19:49:14 +09:00
Tatsuhiro Tsujikawa
5d4d517535 Merge pull request #2487 from nghttp2/gha-bump-clang
GHA: Bump clang to 19
2025-08-23 18:59:00 +09:00
Tatsuhiro Tsujikawa
c36b8ee88a GHA: Bump clang to 19 2025-08-23 18:21:56 +09:00
Tatsuhiro Tsujikawa
2e84de0be9 Merge pull request #2486 from nghttp2/bump-clang-format
Bump clang-format to 19
2025-08-23 18:21:03 +09:00
Tatsuhiro Tsujikawa
e18beaa3bd Bump clang-format to 19 2025-08-23 17:41:35 +09:00
Tatsuhiro Tsujikawa
4890cb0fb8 Merge pull request #2485 from nghttp2/glitch-counter
Add "glitch" counter
2025-08-23 17:38:37 +09:00
Tatsuhiro Tsujikawa
06fb688be2 Add "glitch" counter
Any suspicious activity such as DATA frames to a stream which does not
exist are counted to so called "glitch" counter.  If it increases more
than the configured rate, GOAWAY is sent and the connection is closed.
2025-08-23 17:04:27 +09:00
Tatsuhiro Tsujikawa
56d5406bce Merge pull request #2483 from nghttp2/dependabot/go_modules/golang.org/x/net-0.43.0
Bump golang.org/x/net from 0.42.0 to 0.43.0
2025-08-19 18:40:59 +09:00
Tatsuhiro Tsujikawa
0196b2cc03 Merge pull request #2482 from nghttp2/dependabot/github_actions/actions/checkout-5
Bump actions/checkout from 4 to 5
2025-08-19 18:21:13 +09:00
dependabot[bot]
de7da99453 Bump golang.org/x/net from 0.42.0 to 0.43.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.42.0 to 0.43.0.
- [Commits](https://github.com/golang/net/compare/v0.42.0...v0.43.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.43.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 21:33:06 +00:00
dependabot[bot]
40124de400 Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 21:08:56 +00:00
Tatsuhiro Tsujikawa
6d7f80ed7f Merge pull request #2481 from nghttp2/fix-doc
Update doc
2025-08-18 00:24:32 +09:00
Tatsuhiro Tsujikawa
7bf98f2729 Update doc 2025-08-17 21:39:52 +09:00
Tatsuhiro Tsujikawa
e434b74e50 Merge pull request #2480 from nghttp2/robust-error-handling
Make error handling robust
2025-08-17 18:12:44 +09:00
Tatsuhiro Tsujikawa
7784fa979d Make error handling robust
Stream errors are now promoted to connection errors.  This means that
an event that previously just resets a single stream now closes a
connection entirely.  The promoted errors are mostly implementation
errors.  Some involve HTTP fields, but they are already treated stream
error.  People who care about that should have already raised any
issues.  We do not have any outstanding related issues now, so it
seems OK to treat it as connection error.

We have some contradictory specifications around
nghttp2_on_invalid_header and nghttp2_on_invalid_header2 callbacks.
nghttp2_on_invalid_header says that if it is omitted, a stream is
reset.  Meanwhile, nghttp2_on_invalid_header2 says that if it is
omitted, invalid field is silently ignored.  In actual implementation,
if both omitted, we treat it as stream error.  In practice, it is
often required not to bail out if invalid header is received.  In this
change, if both callbacks are omitted, invalid field is silently
ignored as the documentation of nghttp2_on_invalid_header2 says.  The
connection error promotion is applied here as well.  So if invalid
field is received, and callback returns
NGHTTP2_ERR_TEMPORAL_CALLBACK_FAILURE, it is treated as connection
error.
2025-08-17 16:50:49 +09:00
Tatsuhiro Tsujikawa
8391ae7a57 Merge pull request #2478 from nghttp2/fix-gha-android-build
GHA: Run android workflow on branches event
2025-08-09 18:36:27 +09:00
Tatsuhiro Tsujikawa
d63d2568b7 GHA: Run android workflow on branches event 2025-08-09 17:00:29 +09:00
Tatsuhiro Tsujikawa
d8d94e7a69 Merge pull request #2475 from nghttp2/rewrite-is_hex_string
src: Rewrite util::is_hex_string
2025-07-29 18:06:51 +09:00
Tatsuhiro Tsujikawa
ef3b25e152 src: Rewrite util::is_hex_string 2025-07-29 17:36:46 +09:00
Tatsuhiro Tsujikawa
52ae8b7d9f Merge pull request #2474 from nghttp2/mem-free
lib: Use nghttp2_mem_free
2025-07-25 18:59:14 +09:00
Tatsuhiro Tsujikawa
d204cd0880 lib: Use nghttp2_mem_free 2025-07-25 18:30:51 +09:00
Tatsuhiro Tsujikawa
32a5793b02 Merge pull request #2473 from geoffhill/patch-1
Use allocator-aware free in failure path
2025-07-25 18:27:41 +09:00
Tatsuhiro Tsujikawa
b81979f35b Merge pull request #2472 from nghttp2/dependabot/go_modules/github.com/quic-go/quic-go-0.54.0
Bump github.com/quic-go/quic-go from 0.53.0 to 0.54.0
2025-07-24 20:51:16 +09:00
Geoff Hill
808271a5a9 Use allocator-aware free in failure path
This change avoids free(3) from stdlib in favor of nghttp2_mem_free() for freeing a buffer in an error path. The buffer is allocated with nghttp2_mem_malloc().
2025-07-23 10:41:05 -07:00
dependabot[bot]
4bfd528d44 Bump github.com/quic-go/quic-go from 0.53.0 to 0.54.0
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.53.0 to 0.54.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.53.0...v0.54.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-21 16:57:05 +00:00
Tatsuhiro Tsujikawa
2fefe482bf Merge pull request #2471 from nghttp2/dependabot/go_modules/golang.org/x/net-0.42.0
Bump golang.org/x/net from 0.41.0 to 0.42.0
2025-07-16 18:39:22 +09:00
dependabot[bot]
1c2ba03f94 Bump golang.org/x/net from 0.41.0 to 0.42.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.41.0 to 0.42.0.
- [Commits](https://github.com/golang/net/compare/v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 17:26:26 +00:00
Tatsuhiro Tsujikawa
5edfa62c7b Merge pull request #2468 from nghttp2/dependabot/go_modules/github.com/quic-go/quic-go-0.53.0
Bump github.com/quic-go/quic-go from 0.52.0 to 0.53.0
2025-07-01 21:06:26 +09:00
Tatsuhiro Tsujikawa
efad89d9d2 Merge pull request #2469 from nghttp2/map-seed
Map seed
2025-07-01 20:27:22 +09:00
Tatsuhiro Tsujikawa
a8dfe825d0 src: Specify nghttp2_rand_callback 2025-07-01 19:25:33 +09:00
Tatsuhiro Tsujikawa
a9b0230e57 Add nghttp2_rand_callback
Add nghttp2_rand_callback.  Seed nghttp2_map with the unpredictable
value from the callback.
2025-07-01 19:25:33 +09:00
Tatsuhiro Tsujikawa
01b16f64f4 Port ngtcp2_map changes 2025-07-01 18:25:24 +09:00
dependabot[bot]
b41ca012b4 Bump github.com/quic-go/quic-go from 0.52.0 to 0.53.0
Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.52.0 to 0.53.0.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.52.0...v0.53.0)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-version: 0.53.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 17:49:27 +00:00
Tatsuhiro Tsujikawa
d2b58bd0cd Merge pull request #2467 from nghttp2/pmtudisc-probe
src: Adopt IP_PMTUDISC_PROBE
2025-06-29 18:03:23 +09:00
Tatsuhiro Tsujikawa
fc43fc1805 src: Adopt IP_PMTUDISC_PROBE
It seems that IP_PMTUDISC_PROBE works in some advertent situations.
2025-06-29 17:37:55 +09:00
Tatsuhiro Tsujikawa
1616d9ef05 Merge pull request #2465 from nghttp2/ngtcp2-map-port
Port ngtcp2 map changes
2025-06-21 19:01:20 +09:00
Tatsuhiro Tsujikawa
05b29df6eb Port ngtcp2 map changes 2025-06-21 18:34:09 +09:00
Tatsuhiro Tsujikawa
9f0c59d6dd Merge pull request #2463 from nghttp2/android-docker-avoid-tag-event
Do not trigger android workflow on tag event
2025-06-17 21:58:51 +09:00
Tatsuhiro Tsujikawa
af02195b60 Do not trigger android workflow on tag event 2025-06-17 21:35:43 +09:00
Tatsuhiro Tsujikawa
0f46173c2d Bump package version 2025-06-17 19:18:12 +09:00