node-http-proxy-layered-timeouts
CommunityRobust Node.js proxy timeouts
Authorhubeiqiao
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the critical issue of requests hanging indefinitely when a Node.js HTTP proxy routes traffic through CDNs or tunnels to an unreachable origin server.
Core Features & Use Cases
- Layered Timeouts: Implements distinct timeouts for connection, time-to-first-byte (TTFB), and overall request duration.
- Keep-Alive Socket Handling: Correctly manages timeouts on reused HTTP connections.
- Health Probes: Provides a pattern for background health checks that drain response bodies and allow graceful process exit.
- Use Case: When your Node.js application acts as a proxy for a service behind Cloudflare Tunnel, and the origin server goes offline (e.g., laptop sleep), this Skill ensures requests fail fast within seconds instead of waiting for a full minute.
Quick Start
Implement the provided JavaScript code snippet within your Node.js HTTP proxy to add layered timeouts.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: node-http-proxy-layered-timeouts Download link: https://github.com/hubeiqiao/skills/archive/main.zip#node-http-proxy-layered-timeouts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.