Skip to content

README: keepalive pings, upload windows, both shaping markers - #45

Merged
myleshorton merged 2 commits into
mainfrom
readme-keepalive-windows
Nov 27, 2026
Merged

myleshorton merged 2 commits into
mainfrom
readme-keepalive-windows

Conversation

@myleshorton

@myleshorton myleshorton commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What

Brings the README up to date with #39, #43 and #44:

  • HTTP/2 multiplexing: flow-control windows on both sides (client 512 KiB / 8 MiB; both servers 1 MiB per tunnel, 8 MiB per connection, so one stalled upload doesn't stop the others until eight have, Give each server connection an 8 MiB upload window #43). Dead-connection handling: the 5 s answer timeout retries a waiting CONNECT on another connection (three attempts in all), keepalive pings clear dead connections including idle pooled ones, and resets and timeouts on a failed CONNECT close the connection (Ping quiet HTTP/2 connections and recognize Windows reset errors #39).
  • Limits: quiet connections are pinged at a fixed 11–19 s interval per connection until IdleTimeout, a regular pattern on an otherwise silent connection.
  • Shaping: the server accepts either marker: records that span packets (shaping: let records span full-size packets, as real servers' do #44) or the one-record-per-packet layout older clients send. Also qualifies that the marker check is TLS 1.3 only (a pre-existing gap the review found).

Docs only; every claim was checked against the code on main.

Pre-PR review (local gate: Claude code review, in place of Codex)

  • Codex is out of credits; at the author's request Claude Code's /code-review (high) replaced it.
  • Fixed: the CONNECT retry was credited to pings (it's the 5 s answer timeout); "retire" for resets (they close the connection); unbounded upload isolation (eight stalled tunnels fill the connection window); loose ping cadence (fixed per connection, 11–19 s); undefined "plan"; marker check applies on TLS 1.3 only.
  • Dismissed: the client's connection window is 8 MiB plus the 64 KiB initial window on the wire, below the README's level of detail.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified how TLS 1.3 shaping detection works, including HTTP/2 prefaces that indicate a client does not shape.
    • Added details on flow-control limits, CONNECT retries, connection health checks, and periodic pings for quiet pooled connections.

myleshorton and others added 2 commits November 27, 2026 09:27
Documents #39 (keepalive pings, Windows and ECONNABORTED resets) and #43
(1 MiB per tunnel, 8 MiB per connection upload windows on both HTTP/2
servers), adds pinged quiet connections to Limits, and says the server
accepts either shaping plan's marker (#44).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ions; bound the upload isolation

Per review: a waiting CONNECT is retried by the 5s answer timeout (three
attempts in all), not by pings; a reset or timeout on a failed CONNECT
closes the connection; eight stalled tunnels fill a connection's upload
window; each connection pings at its own fixed interval; marker sentence
names both layouts and applies on TLS 1.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 17:31
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The README now describes TLS 1.3 shaping detection, flow-control limits, CONNECT retries, connection health checks, and periodic pings on idle pooled connections.

Changes: README behavior documentation

Layer / File(s) Summary
Document shaping and connection behavior
README.md
The README describes both TLS 1.3 shaping-marker layouts and identifies an HTTP/2 preface as a client that does not shape. It also documents receive-buffer limits, CONNECT retry conditions, connection health checks, and pings on idle pooled connections.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • getlantern/samizdat#28: Introduces TLS record shaping and the client-to-server marker check described in the README.
  • getlantern/samizdat#44: Changes the shaping marker and record layout; the README describes acceptance of both layouts.
  • getlantern/samizdat#25: Adds LeanH2 stream-capacity behavior related to the README’s flow-control and CONNECT retry descriptions.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

🟢 Approval recommended

No active review issues are reported for the documentation-only README update clarifying HTTP/2 behavior and shaping compatibility.

No open issues 🎉

What changed in this PR

This documentation-only PR aligns the README with the existing HTTP/2 reliability, flow-control, and shaping changes from #39, #43, and #44.

Changes:

  • Documents client and server flow-control windows and the limits of stalled-upload isolation.
  • Explains CONNECT retries, connection failures, and keepalive timing, including the traffic pattern on quiet connections.
  • Clarifies TLS 1.3 shaping detection and support for both current and legacy markers.
File Description
README.md Updates HTTP/2 multiplexing, shaping compatibility, and operational limits documentation.

Review effort: Balanced

@myleshorton
myleshorton merged commit 39e8ce4 into main Nov 27, 2026
3 of 4 checks passed
@myleshorton
myleshorton deleted the readme-keepalive-windows branch November 27, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants