mirror of
https://github.com/block/buzz.git
synced 2026-11-16 06:11:34 +00:00
pg_timeout_millis rounded `us` values with `(value + 500) / 1_000`, which overflows for the top 500 representable u128 magnitudes — a debug panic during config load, or in release a wrapped near-zero millisecond value that slips past the range check and hands the original gigantic string to every pool's after_connect. Round without the intermediate, and cover u128::MAX and the first overflowing value in the fallback test. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Eli Foster <efoster@squareup.com>