github.com-cloudflare-pingora
all · 6 devs · built 2026-08-09
Repository snapshot
Monthly reports
No monthly reports available yet.
Performance over time
ETV stacked by Growth, Maintenance and Fixes — 90-day moving average, normalized to ETV / month.
Average performance per developer
ETV per active developer per month — 30-day moving average.
Active developers over time
Unique developers committing each day — 90-day moving average.
Knowledge concentration
How dependent is this repo on a small number of contributors? Higher top-1 share = higher key-person risk.
ewang owns 56.7 % of commits.
Most impactful commits
Top 20 by ETV in the all-time window.
- 5.4ETVUpgrade body mode on 101 Previously the body reader would initialize to HTTP/1.0 mode when the upgrade request header is found. Now the reader is only converted to that mode when both the upgrade header and 101 is received.Edward Wang · 824bdeef · 2025-12-29
- 3.7ETVFix chunked trailer end parsing httparse itself does not treat the terminating chunk (0 + CRLF) any differently when parsing its chunk size, and the body reader does not validate the following CRLF required to close the body. Additionally, that current parsing scheme will not consider trailers before the end CRLF. Now the trailers are considered but simply discarded. The CRLFs between the trailers (and now, the CRLFs after the body payloads) are validated, however.Edward Wang · a88d0483 · 2025-06-02
- 3.4ETVmake Lru::shard_weight a lock-free read Add a per-shard atomic shadow of total weight (shard_weights: [AtomicUsize; N]) maintained alongside the existing global weight counter at every weight-mutating site (admit, increment_weight, evict_shard_at, remove, insert_tail). Rewrite Lru::shard_weight() to read from the shadow with a Relaxed load instead of acquiring the shard's RwLock to read the LruUnit::used_weight field. This mirrors the pattern already established for shard_lens/shard_len(). Like shard_len(), the same 'best-effort, no cross-thread ordering' caveat applies: the sum of shard_weight(i) is not guaranteed to equal weight() at any single instant, since the global and per-shard atomics are updated independently with Relaxed ordering. Motivation: callers (eviction-balance heuristics, observability) that want to scan all N shards every few seconds should not pay N brief read-lock acquisitions when an atomic shadow is cheap enough to maintain on the write path. Adds a single-threaded regression test verifying the shadow stays consistent with the truth across all five weight-mutating paths.Kevin Guthrie · 8aa31cef · 2026-06-18
- 3.0ETVSubrequest sessions, clear body headers if no input Subrequests are now a separate server Session type, instantiated with corresponding SubrequestHandles that can send or receive HttpTasks to or from the subrequest. This makes it possible to communicate with created subrequests. Additionally the subrequest ctx now has a BodyMode input. If unset the background subrequest will clear request headers related to the request body to prevent issues where the upstream might expect body.Edward Wang · cbb69832 · 2025-08-19
- 2.7ETVShare health across load-balancing selectors Add grouped selectors with asynchronous bounded rebuilds and shared active health across backend views.ewang · d6257c16 · 2026-07-09
- 2.1ETVhandle upstream task-pipe closure on early downstream finish When a response bypasses cache (no cache writer) and the downstream half completes the response by its own framing (e.g. a range or Content-Length shorter than the upstream stream) before the upstream signals end-of-stream, it drops the task pipe. The upstream half's send then fails; previously that surfaced a spurious InternalError ("channel closed") and tore the upstream connection down, even though the client already received a correct response. Add a shared PipeState (Active / DownstreamComplete) that the downstream half sets before it returns and the upstream half checks at every task-pipe closure point: the body, trailer, and end-of-stream sends, and the HTTP/2 closed-pipe and trailer-race early exits. A closure is treated as benign only when the downstream signaled completion; an unexpected closure still surfaces an error. Applied consistently across HTTP/1, HTTP/2, and custom transports. On the benign HTTP/1 path, reuse is left to the loop's normal exit, which marks the upstream connection reusable only when both the response was fully read and the request was fully sent. A premature response can leave the request half-sent, so the connection must not be pooled on response completion alone.Fei Deng · 7142ad46 · 2026-06-24
- 2.0ETVAdd cancel-safe body and header writer primitives Add BodyWriter task API (send_body_task, write_current_body_task, send_finish_task, write_current_finish_task) and HeaderWriter for cancel-safe writes that can be used in tokio::select! loops.Edward Wang · d7728cac · 2026-02-28
- 1.9ETVtransfer-encoding parsing robustnessFei Deng · 7f7166d6 · 2026-01-27
- 1.8ETVAdd cancel-safe proxy task API for Subrequest server sessions Implement the same proxy task API functionality for subrequest server sessions as HTTP/1. Also fix the regular subrequest header write path so upgrade state is only marked after the 101 task is sent.Edward Wang · 77cce2cd · 2026-05-04
- 1.8ETVYear 2026Andrew Hauck · ef017ceb · 2026-01-10
- 1.7ETVAvoid close delimit mode on http/1.0 req RFC9112 is now extra explicit about the close delimiting applying exclusively to response messages for HTTP/1.0. Also disables reuse explicitly when close delimiting on the response side as defense-in-depth that shouldn't have behavioral diff.Edward Wang · 40c3c1e9 · 2026-01-31
- 1.3ETVValidate invalid content-length on v1 resp by default Rejecting bad upstream content-length by default to avoid forwarding ambiguously framed messages. An option still exists to allow this in the peer options, if needed, and treat these responses as close-delimited though this is non-RFC-compliant. The content-length is now also removed on the response if transfer-encoding is present, per RFC.Edward Wang · 460b7f3b · 2026-02-01
- 1.2ETVDiscard extra upstream body and disable keepalive Explicitly disable keepalive on upstream connection when excess body (content-length) is detected.Edward Wang · 60a7bcc2 · 2025-06-10
- 1.2ETVAdd snapshot readiness for selectorsAndrew Hauck · e1361893 · 2026-07-14
- 1.1ETVAdd a system for specifying and using service-level dependenciesKevin Guthrie · b083273e · 2026-02-19
- 1.1ETVDefault to close on downstream response before body finish For v1, this represents a safe default to prevent the next request after an unfinished request write from appearing as and being rejected as a pipelined request on the same connection.Edward Wang · 5378f7e6 · 2025-12-27
- 1.0ETVSanitize hop-by-hop headers on HTTP upstream requests Add configurable HTTP upstream request-header policy with standards-oriented defaults and explicit legacy compatibility modes. Strip hop-by-hop and Connection-nominated fields by default, reject sensitive nominations, normalize supported WebSocket upgrades, and prevent inconsistent 101 tunnel transitions. Finalize HTTP/1 request framing after application upstream filters: preserve explicit outgoing framing and synthesize chunked encoding for remaining non-empty unframed bodies. Apply related sanitization to HTTP/2-bound requests and add integration coverage for framing, upgrades, protected nominations, and compatibility settings.Edward Wang · 28c18e6b · 2026-06-03
- 1.0ETVReject invalid content-length v1 requests If a content-length is present RFC9112 indicates we must reject invalid forms of that content-length header. This eliminates situations where we might be dealing with ambiguous request framing.Edward Wang · fc904c0d · 2026-02-01
- 1.0ETVDon't init body reader on HEAD 1xx This prevents headers like 100-continue from ending the stream and causing hangs while the downstream is waiting.Edward Wang · af7dd468 · 2026-03-18
- 1.0ETVMark previously too large chunked assets as cacheable Too large assets without content-length could previously be skipped as uncacheable indefinitely by the cacheable predictor. This change moves the max file size tracking outside of the miss handler itself such that it can also be used to track body bytes after caching was disabled. This also adjusts the cache inner structs such that cache key and the cacheable predictor are accessible, so that an asset can be remembered as cacheable even if caching was disabled. Additional safeguards are also in place to ensure that the NeverEnabled reason is not overridden when disabling cache, as it does not make sense to disable cache when it was never enabled in the first place.Edward Wang · 889b69e6 · 2025-07-09