mirror of
https://github.com/caddyserver/caddy.git
synced 2026-11-11 19:37:55 +00:00
IdleDeadline.next computed the min_rate allowance as transferred * time.Second / MinRate, which overflows int64 once a request body or response passes about 9.2 GB. The credit goes negative, the deadline lands in the past, and the connection is cut even though the client is far above the configured rate. Compute the credit with a 128-bit intermediate and saturate instead.