Skip to content

Track upstream asks to remove remaining socketry pins and guarded coupling #92

Open

Description

@jimeh

Problem

#68's in-repo work is done (#82, #83, #85, #88, #91). async-http and protocol-http2 stay patch-pinned, and some guarded coupling to async remains, until upstream adds supported hooks or fixes. The investigation drafted the asks below in #68's plan. None has been filed or posted upstream; this issue tracks them so they aren't lost now that #68 is closed.

Draft asks

  • U1 async (discussion first): document and test that Task#finish! clears the fiber and then calls #consume, and that Node#consume runs on each ancestor as descendants are removed. A larger alternative is a public "subtree finished" signal; Task#wait_all snapshots children and fails fast.
  • U2 async-http (PRs):
    • (a) read_in_background builds the reader with Task.new and publishes it before run.
    • (b) Output#start assigns @task before running and exposes attr :task.
    • (c) A stream-class hook for Server#accept_stream and Client#create_response.
    • (d) Issue, repro first: one failed handler makes Server#each's barrier cancel sibling streams. This comes from reading 0.105.0 and is not reproduced.
    • (e) send_body on a closed stream should close the body instead of starting output, and Stream#length should get a reader. Support Don't request a window update for a closed HTTP/2 stream socketry/async-http#257.
  • U3 protocol-http2:
    • (a) Issue, then PR: enforce receive flow control (RFC 9113 §6.9.1).
    • (b) Two-line PR: expand the local window before writing WINDOW_UPDATE.
    • (c) send_goaway(…, last_stream_id:).
  • U4 io-stream:
  • U5 protocol-http1 (PR on top of build: test fresh dependency resolution and loosen Async/Falcon constraints #65): a bodyless request head without content-length: 0 (RFC 9110 §8.6).

docs/development.md's patch-pin table names which ask unblocks each remaining pin (U2 for async-http, U3 for protocol-http2). The daily pins-lifted canary (.github/workflows/canary.yml, #91) reports when a newer upstream release breaks or fixes a guarded contract.

Acceptance

  • Decide per ask whether to file it, and as an issue, PR or discussion with the maintainer.
  • For each filed ask, link the upstream issue or PR here.
  • When an upstream change lands and is released, loosen or remove the matching pin, guard or workaround, and update the patch-pin table.

Filing anything upstream needs Jim's explicit go-ahead per ask.


Written on behalf of jimeh by claude-opus-5-5 using Claude Code via T3 Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions