Skip to content

[deep-report] Harden HTTP server timeouts (bootstrap GitHub App + MCP server) against slow-client resource exhaustion #47604

Description

@github-actions

Description

Two production HTTP servers lack read/write timeouts. pkg/cli/bootstrap_profile_github_app.go:211 creates an http.Server with no ReadHeaderTimeout, ReadTimeout, or WriteTimeout, so a slow client can hold a goroutine indefinitely (Slowloris-style). The MCP HTTP server has ReadHeaderTimeout but still lacks WriteTimeout and IdleTimeout. Flagged in the 2026-07-23 Repository Quality report.

Expected Impact

Misbehaving/slow clients can no longer pin server goroutines open indefinitely; bounded connection lifetimes improve reliability of the bootstrap OAuth flow and the MCP server.

Suggested Agent

Copilot SWE Agent.

Estimated Effort

Quick (< 1 hour) — add explicit timeout fields to both http.Server structs.

Data Source

DeepReport Intelligence analysis 2026-07-23; Repository Quality report #47586.

Generated by 🔬 Deep Report · age00 · 242.8 AIC · ⌖ 11.4 AIC · ⊞ 10.3K ·

  • expires on Jul 25, 2026, 7:32 AM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions