Title: fix(id/serve-proxy): bound credit grants to flow-control limits · Issue #8970 · developing-today/code · GitHub
Open Graph Title: fix(id/serve-proxy): bound credit grants to flow-control limits · Issue #8970 · developing-today/code
X Title: fix(id/serve-proxy): bound credit grants to flow-control limits · Issue #8970 · developing-today/code
Description: Evidence pkgs/id/src/serve_proxy.rs:52-56 defines finite initial stream and connection credits, but CreditWindow::grant at lines 415-418 uses saturating_add with no upper bound or error result. Each decoded WINDOW_UPDATE can grant a u32 ...
Open Graph Description: Evidence pkgs/id/src/serve_proxy.rs:52-56 defines finite initial stream and connection credits, but CreditWindow::grant at lines 415-418 uses saturating_add with no upper bound or error result. Eac...
X Description: Evidence pkgs/id/src/serve_proxy.rs:52-56 defines finite initial stream and connection credits, but CreditWindow::grant at lines 415-418 uses saturating_add with no upper bound or error result. Eac...
Opengraph URL: https://github.com/developing-today/code/issues/8970
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(id/serve-proxy): bound credit grants to flow-control limits","articleBody":"## Evidence\n\n`pkgs/id/src/serve_proxy.rs:52-56` defines finite initial stream and connection credits, but `CreditWindow::grant` at lines 415-418 uses `saturating_add` with no upper bound or error result. Each decoded `WINDOW_UPDATE` can grant a `u32` amount (`window_update_amount`, lines 234-247); repeated valid updates can therefore grow available credit arbitrarily up to `u64::MAX`. Once the mux uses this primitive, the sender can be authorized to exceed the receiver's bounded in-flight buffers. Saturation only hides integer overflow; it does not enforce a finite credit ceiling.\n\nThe relay backpressure design explicitly requires hard finite per-stream and aggregate per-connection byte limits, and says credit returns only as bounded buffer space is released (`doc/2026-11-08T11-08-53Z_design_id5813_relay_proxy_protocol/2026-11-08T11-08-53Z_design_id5813_relay_proxy_protocol.md:85-100`). The serve-proxy issue #7569 is closed and #5792 remains the protocol design tracker, but neither specifically tracks a maximum-credit guard. All-state searches for `CreditWindow`, `WINDOW_UPDATE`, and bounded flow control found no matching implementation issue. The currently open #8951 concerns frame stream/sequence semantics, not credit accounting; no open PR implements this guard.\n\n## Why it matters\n\nA peer can repeatedly send valid credit updates and defeat the flow-control bound that is supposed to keep per-stream and per-connection buffering finite. This risks unbounded queued/in-flight data or inconsistent accounting rather than pausing at the receiver's actual capacity.\n\n## Acceptance criteria\n\n- Give each credit window an explicit finite ceiling tied to the effective per-stream/per-connection limits (do not invent a universal deployment limit where the design delegates it to configuration).\n- Make a grant that would exceed the ceiling or overflow an explicit protocol/resource error; do not silently saturate or mutate the window.\n- Ensure mux-level accounting enforces both per-stream and aggregate per-connection limits before accepting DATA or returning credit.\n- Add tests for normal credit return, exact-ceiling grants, over-ceiling/repeated `WINDOW_UPDATE` grants, and unchanged state after refusal.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-12T18:34:48Z","url":"https://github.com/developing-today/code/issues/8970"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:05421343-08f6-ba14-9ca8-e7c79c90715a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFF6:168632:384711:4A353B:6B07650C |
| html-safe-nonce | 4ae34a12fa608490724c7486e0aaf7dd1333e6138013bca5399ef90e0fe9a720 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkY2OjE2ODYzMjozODQ3MTE6NEEzNTNCOjZCMDc2NTBDIiwidmlzaXRvcl9pZCI6IjUxNTE3Njc3OTM5Mzg5NDkzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4dd35d58000eb7ebdd13381336b80614aeaf38c8927fe2d42e0be30d2f263e7e |
| hovercard-subject-tag | issue:6356518170 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/8970/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0d59f0677a8332da6d1c27c895b1ba0350f5c54b9d8ceedd4df0d5bc67fcb8bb/developing-today/code/issues/8970 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0d59f0677a8332da6d1c27c895b1ba0350f5c54b9d8ceedd4df0d5bc67fcb8bb/developing-today/code/issues/8970 |
| og:image:alt | Evidence pkgs/id/src/serve_proxy.rs:52-56 defines finite initial stream and connection credits, but CreditWindow::grant at lines 415-418 uses saturating_add with no upper bound or error result. Eac... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7a557ecc960a3ae6e299fc66b0bc9132072f8860191648e6749fee5d3ff00d82 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bd845eb7947c1ed8c850f7ab415a51339d162de3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width