Files
caddy/modules
Jae Birdsall f458aa0081 caddyhttp: fix min_rate credit overflow on transfers over 9.2 GB (#8396)
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.
2026-11-10 14:57:57 +00:00
..