Skip to content

src: sync nghttp2 versions checks with current requirements#22061

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:nghttp2-ver-check-fixes
Closed

src: sync nghttp2 versions checks with current requirements#22061
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:nghttp2-ver-check-fixes

Conversation

@vszakats

Copy link
Copy Markdown
Member

Also:

  • drop a redundant check.
  • make the in-source error informative.

Follow-up to 2900c29 #11473

Also:
- drop a redundant check.
- make the in-source error informative.

Follow-up to 2900c29 curl#11473
@vszakats vszakats changed the title src: sync versions checks with current requirements src: sync nghttp2 versions checks with current requirements Jun 17, 2026
@github-actions github-actions Bot added the HTTP label Jun 17, 2026
@vszakats vszakats requested a review from Copilot June 17, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns libcurl’s in-source nghttp2 version requirement with the existing build-system requirement (nghttp2 ≥ 1.15.0), removes a now-redundant preprocessor guard, and makes the compile-time failure message more informative.

Changes:

  • Bump the in-source minimum NGHTTP2_VERSION_NUM check to 0x010f00 (nghttp2 1.15.0).
  • Drop the redundant conditional around NGHTTP2_HAS_SET_LOCAL_WINDOW_SIZE.
  • Compact the nghttp2 1.50.0 option guard comment onto the #if line in both H2 client creation sites.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/http2.c Updates the minimum nghttp2 version check to 1.15.0, improves the #error message, and removes a redundant feature-define guard.
lib/cf-h2-proxy.c Minor preprocessor formatting change for the nghttp2 ≥ 1.50.0 option guard to match lib/http2.c.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vszakats vszakats closed this in 4abe47e Jun 17, 2026
@vszakats vszakats deleted the nghttp2-ver-check-fixes branch June 17, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants