# Fixing LLM SSE Streaming Stalls: Nginx & Caddy Buffering, Timeouts, Heartbeats

> **TL;DR**: Diagnose and fix LLM SSE streaming stalls behind Nginx and Caddy: disable proxy buffering, tune timeouts, implement heartbeats, and validate with production-ready configs and commands.
> **Source**: https://ai.yevrix.com/articles/nginx-caddy-sse-streaming-buffering-llm-proxy

## 1. Real-World Pain Points and Underlying Mechanics

When serving LLM tokens via Server-Sent Events (SSE), users often report three symptoms: slow first token, mid-stream stalls, and premature disconnects. While these may seem like model latency, they are frequently caused by reverse proxy buffering, timeouts, and connection management.

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/nginx-caddy-sse-streaming-buffering-llm-proxy
