# Missing Network Timeout Configuration

> Detects HTTP clients and network connections without timeout configuration, enabling slowloris and resource exhaustion attacks.

- Skill: `zakirkun/missing-network-timeout-configuration` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add zakirkun/missing-network-timeout-configuration`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zakirkun/missing-network-timeout-configuration/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: zakirkun (https://skillmd.com/u/zakirkun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zakirkun/missing-network-timeout-configuration

---


# Missing Network Timeout

## Overview
Network connections without timeouts are vulnerable to:
- **Slowloris**: Attacker opens connections and sends headers slowly, exhausting connection pool
- **Resource exhaustion**: Long-running connections hold goroutines/threads indefinitely
- **Hanging requests**: A slow external service stalls all users waiting for responses

## Remediation
- Set connect timeout, read timeout, and write timeout independently
- Use context with deadline for all outbound HTTP requests
- Configure server read/write timeouts

**Safe (Go):**
```go
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
req, _ := http.NewRequestWithContext(ctx, "GET", url, nil)
```

