Skip to content

Findings: resilient client connections and Ruby HTTP backends #24

Closed

Description

@jimeh

Recommend adding opt-in, demand-driven connection management to the existing Async client before adding another HTTP backend. Preserve the default of one dispatch attempt per RPC. Evaluate HTTPX afterward for ordinary threaded callers, against the same cancellation, memory, duplex and metadata contracts.

This is the findings and decision brief for the client investigation in #21. The recommendations below are proposed follow-ups, not approved implementation work. They do not change the native gRPC work in #22 or the subsequent gRPC-Web milestone in #23.

Investigation completed

This issue records the completed, revision-pinned investigation. The approved roadmap tracks implementation separately in #28 (Async connection resilience) and #29 (ordinary-thread persistence). Native HTTP/1.1 support delivered by #41 and #44 does not close either successor. Backend observations below remain historical source findings and must be refreshed before selecting another backend.

Evidence and scope

Repository findings are pinned to bbd14a72322958f3b759b08166f26946d6cc030c, after native Connect streaming. Upstream sources were inspected on 2026-11-03. HTTPX analysis uses release 1.9.0, commit 022952f, from the maintainer's GitHub mirror. The Async dependency sources match the versions in the repository's separate lockfile.

Evidence consists of source inspection, existing test definitions and a small real localhost NetHTTP probe. Existing suites were not rerun. No HTTPX adapter, Async channel or alternative runtime was implemented or exercised. No throughput, CPU, RSS or full-conformance claim follows from this investigation.

The NetHTTP probe used a peer that advertised HTTP/1.1 keep-alive. Two sequential transport calls produced two accepted TCP connections, Connection: close on both requests, successful bounded responses and client EOF after each response. This was observed on Ruby 3.4.12 / net-http 0.6.0 and Ruby 4.0.9 / net-http 0.9.1. It tests this adapter's plain TCP lifecycle, not TLS, cancellation or performance.

Verified current behavior

Core owns RPC semantics; transports own connection resources

Client#process_call creates the monotonic deadline before request encoding and calls the transport once. Default timeout is 30 seconds; timeout: nil removes the aggregate RPC deadline. The call-owned cancellation arbiter remains open through response decoding. Transports receive the original deadline, read-only cancellation SPI and lifecycle handle. They must enforce waits and incremental input bounds themselves; core validation cannot undo a large allocation or interrupt blocked native code.

The public unary seam is _Transport#call(TransportRequest) -> TransportResponse. Streaming is additive: explicit capabilities and block-scoped open_stream, with response-head access, bounded reads, writes, half-close, finish and abort. Core checks capabilities before encoding or I/O. Async supports all three Connect streaming shapes; NetHTTP, Testing, Rack/Rails and Falcon HTTP/1 remain unary.

The present SPI has no connection acquire/readiness/failure-phase API. An unavailable error alone does not establish whether request bytes were sent. A generic wrapper that catches it and calls the transport again would violate the existing no-replay contract.

NetHTTP is deliberately one connection per call

Actual lifecycle code constructs a new Connection, starts it, performs one exchange and finishes it in ensure. It injects Connection: close, sets max_retries = 0, disables implicit decompression and environment proxy routing, and rejects an implicit second connection on that owned object. The localhost observations above confirm the resulting lack of reuse, even when the peer offers keep-alive.

Each finite call creates a watchdog after startup and joins it on exit. Cancellation registers a guarded raw-socket close; retirement protects against a late callback touching a later resource. TLS peer and hostname verification are enabled. DNS and TCP before raw-socket exposure remain cooperative; a deadline cannot guarantee interruption of every native resolver operation. Nil RPC deadlines retain the independent native-operation cap, not an aggregate timeout.

Net::HTTP itself supports persistent sessions; the library's adapter chooses not to use them. A pool therefore needs a different lease/resource lifecycle. Removing the close header alone would leave finish, watchdog ownership and the reconnect guard incompatible with reuse. Upstream session/reconnect code also shows why max_retries = 0 is insufficient by itself: begin_transport can reconnect before dispatch.

Async already persists and multiplexes, but has no channel policy

The origin-bound transport defaults to connection_limit: 1, max_requests: 128, connect_timeout: 10. It directly owns an Async::Pool::Controller and lower-level HTTP/2 connections, rather than using the general Async HTTP client's request retry loop.

  • Construction, calls, stream operations and close require an application-owned Async task on the same thread and scheduler. Affinity checks reject other reactors/threads. There is no hidden synchronous reactor thread or explicit PID guard for inherited objects.
  • max_requests bounds admitted calls, including pool waiters and cleanup; excess admission fails with unavailable. The peer's concurrent-stream limit separately constrains acquisition. Finite deadlines and cancellation cover acquisition, setup, headers and bodies. Nil-deadline acquisition can wait indefinitely within the admission-count bound. This is not an unlimited request queue, but it has no separate pending-byte budget.
  • Setup uses the smaller of its own connect timeout and the initiating call's remaining deadline. It resolves/connects through IO::Endpoint, verifies TLS/hostname and requires ALPN h2; cleartext uses H2 prior knowledge. There is no HTTP/1 fallback. Endpoint source resolves addresses for each new connect operation and tries them in sequence. There is no maintained resolver watch, periodic service discovery, balancing policy or DNS migration of an already-live socket.
  • Connection construction is serialized by the pinned pool's constructor guard. This already limits simultaneous dial creation, but failures propagate to callers without shared exponential backoff. A burst can consequently drive successive failed setup attempts. Serialization and outage pacing are different controls.
  • New calls can acquire a replacement after a dead connection is retired. Existing specs describe real multiplexing and deadline-bound pool waits; idle-expiry coverage describes a separate later RPC reconnecting. Closure/REFUSED_STREAM/GOAWAY coverage asserts no replay, including when the backend classifies a stream as retryable. These are inspected tests, not fresh passing results.
  • Graceful GOAWAY makes the backend connection nonreusable. The protocol layer preserves accepted streams at or below the last-stream ID and fails higher IDs. The pool retires a nonreusable resource after its users release it. Source-derived consequence: with limit one and an active long-lived stream, the draining resource still occupies that slot. New calls may wait for capacity instead of immediately dialing a replacement. Replacement overlap needs an explicit, bounded policy.

Cancellation and cleanup use foreign-thread notifications to wake the owner reactor, which stops private tasks and resets the affected stream. Cleanup has one cooperative 100 ms allowance; a stuck deferred frame triggers raw-first whole-connection abort and can fail siblings. The resource owner retires sockets and reader/writer tasks. close(grace: 5) stops admission, waits for calls, drains wire streams, sends GOAWAY when empty and forces teardown on grace expiry. Owner cancellation aborts owned work. Native code that blocks the reactor remains outside hard timing guarantees.

Ingress credit follows consumption/discard, with bounded native chunks, and stream output retains one queued fragment plus the writer's in-flight fragment. Reconnection must preserve those bounds. A connection reset does not recover an established stream. The existing terminal-error recovery and HTTP-tail policies consume the current exchange; they do not redial or resume it.

Identity, hosting and observability boundaries

The Async client compiles a TLS snapshot at transport construction. Replacing a connection reuses that configured identity/trust; changing client identity currently means replacing the transport. Server TLS-provider refresh/drain is a separate facility. Reconnecting must never weaken hostname/ALPN verification, silently adopt different mTLS credentials, or infer authorization from a resolved address.

Falcon composes the same Async native application/session with process workers and an explicit Rack fallback. It is not an independent client transport or HTTP/2 implementation. Worker preparation precedes TLS/provider startup, and native handlers retain the exact-task identity boundary. Portable Rack/Rails remain useful unary hosts; a thread pool or another scheduler would not add full-duplex H2 capability to them.

Public signatures expose transport construction, calls, capabilities and close, but no supported readiness state, reconnect control or connection metrics. Transport inspect reports lifetime state, not readiness. RPC instrumentation and optional OTel describe each RPC; connection setup before an RPC exists is outside that lifecycle. Falcon has hosting utilization counters, which are not a client-channel state API.

What a channel should mean here

A channel is a long-lived owner of connection attempts and policy. It is distinct from a particular socket and from an individual RPC.

The useful reference is grpc-go ClientConn: it combines resolution, balancing, connection replacement, state and backoff. Its modern constructor starts idle; demand or explicit Connect initiates activity. Connection backoff and wait-for-ready are separate from RPC retry/replay. Copying the word "channel" must not accidentally copy every gRPC retry feature.

Recommended initial policy

  1. Demand-driven recovery. Create no sockets in the constructor. When demand exists, coalesce connection establishment per origin and TLS configuration, with a finite setup budget. After failure, pace further attempts using capped exponential backoff and jitter shared across callers. Compute the delay from a capped exponential base, randomize it within a documented bounded range, and schedule it on monotonic time. Stop attempts when no demand remains; retain the backoff state so bursts do not reset it. Reset after verified protocol readiness, not merely TCP connect. An optional explicit warm-up/background mode can follow a demonstrated need, with its own owner, idle policy and shutdown tests.
  2. Explicit waiting. Preserve a fail-fast/default policy after connection failure. An idle caller may wait for its initial setup; fail-fast means it does not wait through transient-failure/backoff. Opt-in wait-for-ready may survive multiple failed connection attempts before dispatch. Its queue wait, backoff and setup all consume the original call deadline. Cancellation removes a waiter promptly. A nil RPC deadline may permit indefinite waiting only under explicit bounded admission and close/cancel behavior. Consider a separate maximum readiness wait without inventing a wire deadline.
  3. Bound outages. Limit pending calls, pending encoded bytes, active calls, attempts and connections. For unary, waiting occurs after encoding at the existing transport seam, so a count alone can retain many maximum-sized request bodies. Keep the already-bounded streaming buffers. Reject overflow predictably, without an executor's hidden queue. Do not wake every waiter to dial; release dispatch capacity in a controlled manner.
  4. Separate attempt ownership from waiter ownership. One short-deadline or canceled caller must detach without canceling a shared attempt needed by another caller. Today setup is associated with an initiating operation and its lifecycle. A channel-owned attempt must not run under whichever RPC happened to arrive first. Preserve each RPC's context and final outcome independently; use connection-level observation for shared work.
  5. Define dispatch exactly. Recheck deadline/cancellation and connection generation under the final dispatch guard; refresh the wire timeout there. Once any request-head write begins, treat the outcome as potentially ambiguous and do not resend, even on a safe-method declaration or an upstream "retryable" error. A future explicit RPC retry feature needs its own policy, attempt budget and independent evidence. Stream recovery additionally requires application/protocol sequence, acknowledgement, deduplication or resume semantics.
  6. Make close and security structural. Stop admission and new attempts before draining; wake readiness waiters, join owned timers/tasks, and close only owned resources. Preserve existing cleanup and sibling-failure semantics. Construct after fork in the worker, retain thread/reactor ownership, and reject inherited live objects rather than sharing sockets across processes. A transport facade must not claim fork safety merely because an executor resets itself.

A minimal proposed state vocabulary is idle, connecting, ready, backoff, closing and closed. Treat state snapshots as observation, not proof that the next RPC will succeed. Track transitions, connection-attempt outcomes/duration, current connections, pending calls/bytes, admission rejection and readiness-wait duration with bounded labels and safe failure categories. Keep certificate material, payloads, raw URLs and rescued exception text out of these events. Existing trusted RPC observers may retain original failures; normalized public errors should keep fixed safe messages and no sensitive cause.

Resolution and keepalive

Initially retain origin-based system resolution on new attempts, explicitly documenting OS/scheduler caching and native cancellation limits. If endpoint changes must become visible without a failure, add bounded/coalesced re-resolution as a separate capability. Address lists, health checks, balancing and service-config discovery substantially widen scope; keep the original authority/SNI and trust boundary even when dialing a different address.

Keepalive is not required to start this work. Optional H2 PING liveness can help long-lived streams or silent network loss, but requires an owner timer, timeout, traffic budget and peer policy. gRPC's guidance distinguishes it from health checks and explains peer enforcement. It cannot prove application readiness or resume a failed stream. Avoid enabling periodic background pings by default.

Placement and illustrative caller API

Prefer an Async-owned connection manager, exposed through transport views implementing the existing unary/streaming seams. The manager owns attempts, pool resources, backoff and close. Transport views select call admission/waiting policy. Core keeps codecs, wire semantics, cancellation arbitration and typed client APIs. Keep connection-policy internals private initially; a second real implementation can establish which pieces deserve a shared public abstraction.

Illustrative only; names, options and state vocabulary are not frozen:

Async do
  channel = ConnectRPC::Async::Channel.new(
    origin: origin,
    max_pending: 32,
    max_pending_bytes: 8 * 1024 * 1024
  )
  transport = channel.transport(wait_for_ready: true)
  client = ConnectRPC::Client.new(
    base_url: origin, binding: binding, transport: transport
  )
  begin
    client.call(method, message, timeout: 2, cancellation: source.token)
    # The same absolute two-second budget covers readiness through decoding.
  ensure
    channel.close(grace: 5)
  end
end.wait

This shape avoids adding per-call options to every generated client immediately. Two views could share a manager while choosing different waiting policies. It still requires a new internal connection-acquisition boundary; wrapping the existing opaque call with a retry loop is not sufficient. A future per-call wait_for_ready: option would require additive core records, signatures and generated caller changes.

Backend and execution alternatives

Option Useful outcome Main cost or limit Recommendation
Existing Async plus managed connections Reuses current H2, TLS, bounded ingress, duplex and cleanup behavior Requires an application reactor; shared attempts change ownership First resilience target; moderate, source-coupled work
Explicit persistent NetHTTP pool Reuses HTTP/1 connections for ordinary threaded unary callers, with no new HTTP stack One exclusive lease per in-flight call; new checkout/idle/retirement lifecycle; no H2 or streaming Smallest transport-focused improvement if unary threaded use is the priority; moderate work
Optional HTTPX adapter HTTP/1 and H2 with a synchronous request API, persistence and thread-safe sessions Different replay, pooling, headers, streaming, cancellation and resource behavior Strong candidate for a bounded adapter feasibility study after policy contracts; larger integration surface
Explicit synchronous facade over Async Ordinary-thread unary calls while retaining the existing H2 stack An owned reactor thread, bounded handoff, context transfer, cancellation and shutdown bridge Compare directly with HTTPX if avoiding a second HTTP stack matters; moderate-to-large lifecycle work
concurrent-ruby Executors, promises and synchronization around a chosen transport No HTTP/2, TLS, socket pool or RPC semantics Optional execution utility, not a transport replacement
EventMachine Reactor/callback integration for an application already using EM A distinct runtime and H2/TLS/flow-control adapter still needed Defer absent a concrete EM application requirement
Polyphony / UringMachine Fiber/I/O execution models Polyphony is archived; UringMachine has Linux/kernel constraints and supplies scheduling, not RPC/H2 Comparative context, not a proposed backend commitment

Persistent NetHTTP and a synchronous facade

A NetHTTP pool must bound socket count and checkout wait, enforce the original deadline/cancellation during checkout, lease each connection exclusively, and retire it after incomplete responses, write ambiguity or cancellation. Arm/disarm per-lease socket ownership before reuse; a late callback from call A must never close call B's socket. Idle expiry, server Connection: close, fork, close/drain and implicit reconnect need explicit handling. Keep transparent retries disabled. This preserves unary portability but cannot satisfy the streaming SPI.

For example, an illustrative PersistentNetHTTP.new(max_connections: 4) could be passed to today's Client.new(transport:), used from ordinary request threads, and explicitly closed during worker shutdown. No such class exists at the pinned revision.

A synchronous Async facade should create one deliberate long-lived owner thread per configured client group, not one reactor per call. Its public unary call can retain today's signature. It must transfer lifecycle context explicitly and bound/cancel the cross-thread handoff. Blocking on its own owner reactor must fail locally. Streaming should remain unsupported until the facade defines where the user block executes and proves a bounded, cancellable reader/writer bridge; moving arbitrary user code to a hidden thread would change the API's execution semantics.

HTTPX: credible transport candidate, with specific gaps to prove

The Ruby HTTPX library is a separate project from Python HTTPX. The inspected release declares http-2 >= 1.2.0 as its runtime dependency; adopting it needs a separate optional bundle, pinned dependency audit and license review under the project's conventions. Its official connection documentation describes H2 multiplexing; its pool documentation covers ordinary threaded usage. Sessions have a mutex-protected pool, but independent threaded calls do not automatically mean one shared multiplexed socket across those threads. Measure and document the actual sharing topology.

Specific source findings:

  • Persistence and replay are coupled by the convenience plugin. :persistent loads :retries with at least one retry at plugin load. Its reconnectable-error path can make POST eligible, not only idempotent verbs. fetch_response and retry preparation perform another send; some liveness/GOAWAY cases do not consume the retry counter. An adapter must explicitly disable every resend path and test wire dispatch counts, including GET, POST, EOF, reset, GOAWAY and stale sockets. "Persistent" cannot be treated as equivalent to "no RPC replay." Raw persistence options may avoid this plugin coupling, but need their own lifecycle proof.
  • Bounds differ. Pool connection limits default to infinity and checkout timeout to five seconds. Default body limits are also unbounded; response decompression/request compression are enabled. Override these for opaque protocol bytes and enforce incremental core-compatible limits. A fixed pool timeout is not original-deadline propagation or prompt cancellation, especially while waiting on the pool's condition variable.
  • Streaming support is real, but its contract differs. The stream plugin permits one streaming response per request invocation and delivers chunks through callbacks/enumeration. Lazy response access drives the response iterator; header-only progress before the first DATA needs a specific probe. The bidi plugin allows request appends and explicit half-close. Its request body and secondary output buffer append bytes without a blocking byte-cap contract. Send-side window checks in the H2 implementation do not establish bounded application-owned buffering or sibling progress when a consumer pauses. Those properties need adapter-level proof, including application-consumption-based receive credit.
  • Headers/trailers need deliberate mapping. HTTPX's public header access joins repeated values; its array-returning get is documented in source as internal. The H2 path merges trailing HEADERS into the response headers. Its gRPC plugin stores a separate trailing-metadata value, but does not thereby provide our neutral transport contract. Preserve repeated fields, distinguish leading and trailing fields where the protocol needs it, and avoid turning actual H2 trailers into Connect unary trailer-* metadata.
  • Cancellation and completion are not equivalent yet. HTTPX has an internal gRPC refusal path. That does not prove foreign-thread CancellationToken wakeup, prompt cancellation in DNS/pool/TLS/write waits, exactly-once listener retirement, sibling preservation or our finish(timeout:) cleanup attestation. The gRPC plugin also owns its own codecs/framing/status/deadline behavior and loads persistence/stream plugins. It must not replace our core protocol and binding engine.
  • Routing and lifecycle defaults need explicit constraints. HTTPS can fall back to HTTP/1; cleartext defaults to HTTP/1. Its connection code can coalesce eligible origins and retain TLS sessions. An adapter must deliberately constrain origin, TLS identity/trust, ALPN and credential sharing. Fork guidance requires closing persistent connections or enabling the explicit option. The persistence plugin's global close path is not safe while other threads use it, so adapter close needs coordinated admission and drain.

HTTPX's timeout options and stream plugins are useful building blocks, not evidence that a 30-second RPC budget automatically spans every stage. In particular, the official timeout guide excludes DNS from connect timeout; no default request-wide timeout exists. Map the remaining absolute budget and nil-deadline semantics deliberately, and keep setup limits distinct from RPC expiry.

Execution libraries and server implications

concurrent-ruby provides the requested thread pools, promises and synchronization. Its Ruby executor defaults max_queue to zero, which normally means unbounded queueing. A bounded pool should use an explicit queue limit and rejection policy. caller_runs can block the submitting reactor; a promise timing out does not by itself stop underlying HTTP I/O. Transport cancellation and resource ownership remain necessary.

EventMachine uses a reactor and callback connections. Cross-thread work must be scheduled back to its owner; deferring Ruby work to a thread pool does not create an H2 client. An EM backend would need a separate HTTP/2 implementation/integration and the same TLS, admission, bounds, trailers, cancellation and drain acceptance criteria. Nothing here justifies a new EM server implementation.

Polyphony is archived. UringMachine is an active io_uring-based I/O library and Fiber::Scheduler implementation; its current README requires Linux kernel 6.7 or newer, with some features needing newer kernels. A scheduler can support cooperating standard-library I/O, but the current Async transport explicitly requires Async tasks, cancellation primitives and owner affinity. Installing another scheduler does not automatically make it compatible.

In CRuby, threads allow overlapping waits; they do not automatically parallelize Ruby CPU work within a Ractor because of the GVL. Native codecs may or may not release it, and synchronous native work can still occupy a reactor thread. The selected protobuf binding calls native encode/decode directly; no benchmark or GVL-release guarantee was established here. Falcon's process workers already offer a separate deployment axis. Keep server/runtime changes out of the client resilience scope unless a measured workload supplies a reason.

Ranked follow-ups for a maintainer decision

These are alternatives and acceptance gates within this findings issue, not additional filed tasks or authorization to implement.

  1. Settle the connection contract and a focused failure harness. Small, bounded preparation. Define dispatch, readiness, fail-fast/waiting, queue counts/bytes, safe errors, close and GOAWAY capacity. Use injectable monotonic clock/randomness for policy tests and real localhost peers for wire boundaries. Recheck the transport SPI against the native gRPC result before implementation.
  2. Implement opt-in Async management if approved. Moderate scope. Demand-driven shared attempts, capped jittered backoff, bounded opt-in readiness waits, safe connection observation and owner-bound shutdown. Keep existing Transport/default clients and no-replay behavior compatible. Initially preserve the configured hard connection cap during GOAWAY drain; if replacement overlap is required, specify separate active/draining caps and a retirement deadline before enabling it.
  3. Choose one ordinary-thread path from real caller needs. If unary H1 reuse is sufficient, a persistent NetHTTP pool is the narrower outcome. If H2 is required without application Async ownership, compare a small HTTPX feasibility adapter with an explicit unary Async facade. Require the gates below before promising streaming. Do not implement all three to keep options open.
  4. Defer background warming, periodic discovery, load balancing and keepalive. Larger operational scope. Add only the independently justified capability. RPC replay and streaming resumption require separate decisions regardless of backend.

Concrete acceptance criteria

For any managed connection implementation:

  • A peer initially refuses connection, then starts listening. Concurrent opt-in waiters share paced attempts; canceled/expired waiters send no request bytes, and a surviving waiter dispatches exactly once. Default callers fail according to the chosen policy. A short-deadline caller cannot abort another caller's shared setup.
  • Deterministic clock/random tests verify backoff growth/cap/jitter, reset only at protocol readiness, no burst reset, and no timer/attempt after demand disappears or close starts. Real wire probes verify the state machine is connected to actual I/O.
  • Count and byte limits hold during an outage and overload is reported predictably. Pool exhaustion, interruptible setup/TLS, headers, body, blocked output and backoff observe the original deadline/cancellation. If native DNS cannot be interrupted, report that limit and recheck expiry/cancellation before dispatch after it returns. No late dispatch or queued request survives its terminal outcome.
  • Drop a socket after observing request-head/body progress and independently count server invocations/connections. The failed RPC is never replayed; a separately issued call can reconnect. Cover POST and eligible GET, REFUSED_STREAM and GOAWAY.
  • Send graceful GOAWAY with a live stream and several new calls. Accepted streams complete where the peer permits; later calls follow the documented capacity policy. Hard connection/retirement bounds hold, including cancellation and close races. Long-lived draining streams cannot create an unlimited retiring population.
  • Cancel/reset one stream while a healthy multiplexed sibling advances. Preserve current bounded ingress/output and raw-first stuck-frame fallback. Verify listener/task/socket retirement, no reused-resource close by an old callback, owner cancellation and repeated/concurrent close outcomes.
  • Enforce each backend's declared ownership: reject cross-thread/reactor use for Async, and synchronize sharing for an ordinary-thread backend. Reject inherited live objects after fork without corrupting parent resources. Build clients after worker fork. Verify mTLS credentials, hostname/SNI, trust and ALPN across reconnects and explicit client replacement; failed validation cannot fall back to plaintext or a different identity.
  • Safe connection events contain only documented bounded fields. RPC spans and cancellation outcomes remain per call, shared setup has neutral context, and streaming keeps the exact owner-task identity through cleanup. Update owning signatures, supported/SPI inventory, strict caller evidence and installed package discovery for any public addition.

An HTTPX adapter or synchronous facade additionally needs real full-duplex tests in which the server sends headers before DATA and requires a client message before producing a reply. Prove one concurrent reader/writer, bounded stalled sends/receives, early headers, repeated leading fields, separately handled trailers, half-close, cancellation and bounded finish/abort. Exercise two healthy/blocked sibling streams and verify connection sharing across ordinary threads rather than assuming it. Preserve core's terminal-error recovery and absolute HTTP-tail policies. Advertise only the cardinalities actually proved.

Run focused owning-package specs during implementation, then the relevant Async/backend package verification, supported Ruby lanes, public signature/package consumers and independent Go protocol checks. Synchronize on accepted connections, frame progress, handler entry and completion signals; elapsed sleeps are not evidence that a race has started. No new broad benchmark program is necessary to establish these correctness contracts.

Open decisions and limits

  • Demand-driven management is recommended first; always-on reconnection is not yet justified. Exact delay defaults, readiness-wait defaults, overload classification and event API remain undecided.
  • The default GOAWAY capacity limitation follows from source. A fresh active-stream/replacement-overlap wire probe is still needed to select different behavior.
  • HTTPX was source-inspected, not installed or tested. Its receive-credit behavior, cancellation wakeup, header-only progress, cross-thread connection sharing and bounded shutdown remain feasibility questions. The exact http-2 version and any upstream hooks needed for an adapter must be audited in its own isolated bundle.
  • Native resolver/codecs and application callbacks can block outside cooperative deadlines. No backend should promise hard interruption or CPU parallelism without runtime-specific evidence.
  • This issue records completed investigation findings. Selecting or implementing a candidate requires a separate maintainer decision; it does not add approved roadmap work.

Written on behalf of jimeh by gpt-6.1-sol using Codex 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