Skip to content

refactor: give the buffer windows their own constant - #298

Merged
sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/implementer-surface
Nov 24, 2026
Merged

sgerbino merged 1 commit into
cppalliance:developfrom
sgerbino:pr/implementer-surface

Conversation

@sgerbino

@sgerbino sgerbino commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The sources, sinks and transfer loops sized their buffer windows with capy::detail::max_iovec_. How many buffers to hand on per call is not part of Capy's protocol, so they now use http's own detail::max_iovec_.

The capy/detail/config.hpp includes are removed, since none of these files used anything from it. Comments in the test sources and sinks no longer name task's transform_awaiter, which cppalliance/capy#494 removes. Nothing here depends on that change, so this merges on its own.

Summary by CodeRabbit

  • Refactor
    • Updated buffer-handling components to use an HTTP-specific limit for grouped buffer operations.
    • Removed unnecessary internal configuration includes from several buffer concept headers.

The sources, sinks and transfer loops sized their buffer windows with
capy::detail::max_iovec_. How many buffers to hand on per call is not
part of Capy's protocol, so they use http's own detail::max_iovec_.

The capy/detail/config.hpp includes are gone too: none of these files
used anything from it. Comments in the test sources and sinks no
longer name task's transform_awaiter, which Capy removes; nothing here
depends on that change, so this merges on its own.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change defines boost::http::detail::max_iovec_ as 16. HTTP I/O headers use it for buffer-array capacities and refill limits instead of Capy’s constant. Four concept headers no longer include Capy’s configuration header.

Changes: HTTP iovec limit

Layer / File(s) Summary
Define and apply the HTTP iovec limit
include/boost/http/detail/max_iovec.hpp, include/boost/http/io/*, include/boost/http/concept/*
The HTTP detail header defines the limit as 16. I/O paths use it for buffer arrays and refill bounds. The concept headers remove their Capy configuration include.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Refactor

Suggested reviewers: mvandeberg

Merge Risk: Minimal · up to c41fb · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "refactor: give the buffer windows their own constant" matches the main change. The PR moves buffer-window sizing from capy::detail::max_iovec_ to a new HTTP-local detail::max_iovec_ constan…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "refactor: give the buffer windows their own constant" matches the main change. The PR moves buffer-window sizing from capy::detail::max_iovec_ to a new HTTP-local detail::max_iovec_ constant in the affected sources, sinks, and transfer helpers. The title is short, specific, and in a conventional commit form. It does not describe the removal of unused capy config includes, but that is a secondary change.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the buffers in a row
Sixteen slots are ready to go
Capy’s config leaves the scene
HTTP keeps its limit clean
The bunny hops through headers green

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 888cd64 and c41fb6f.

Files ignored due to path filters: 9

  • include/boost/http/test/buffer_sink.hpp is excluded by !**/test/**
  • include/boost/http/test/buffer_source.hpp is excluded by !**/test/**
  • include/boost/http/test/read_source.hpp is excluded by !**/test/**
  • include/boost/http/test/write_sink.hpp is excluded by !**/test/**
  • test/unit/io/any_buffer_sink.cpp is excluded by !**/test/**
  • test/unit/io/any_buffer_source.cpp is excluded by !**/test/**
  • test/unit/io/any_read_source.cpp is excluded by !**/test/**
  • test/unit/io/any_write_sink.cpp is excluded by !**/test/**
  • test/unit/io/buffer_param.cpp is excluded by !**/test/**
Files selected for processing: 12

  • include/boost/http/concept/buffer_sink.hpp
  • include/boost/http/concept/buffer_source.hpp
  • include/boost/http/concept/read_source.hpp
  • include/boost/http/concept/write_sink.hpp
  • include/boost/http/detail/max_iovec.hpp
  • include/boost/http/io/any_buffer_sink.hpp
  • include/boost/http/io/any_buffer_source.hpp
  • include/boost/http/io/any_read_source.hpp
  • include/boost/http/io/any_write_sink.hpp
  • include/boost/http/io/buffer_param.hpp
  • include/boost/http/io/pull_from.hpp
  • include/boost/http/io/push_to.hpp
Files with no reviewable changes: 4

  • include/boost/http/concept/buffer_sink.hpp
  • include/boost/http/concept/buffer_source.hpp
  • include/boost/http/concept/read_source.hpp
  • include/boost/http/concept/write_sink.hpp

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@cppalliance-bot

Copy link
Copy Markdown

An automated preview of the documentation is available at https://298.http.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-11-24 19:28:28 UTC

@cppalliance-bot

Copy link
Copy Markdown

GCOVR code coverage report https://298.http.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://298.http.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff Report https://298.http.prtest3.cppalliance.org/diff-report/index.html

Build time: 2026-11-24 19:45:42 UTC

@sgerbino
sgerbino merged commit d353578 into cppalliance:develop Nov 24, 2026
13 checks passed
@sgerbino
sgerbino deleted the pr/implementer-surface branch November 24, 2026 19:58
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants