Stefan Prodan
302c092cce
Fix panic on GET /chunked from integer overflow
...
HttpServerTimeout is a time.Duration (nanoseconds); the default-delay
branch scaled it by time.Second again, overflowing int64 to a negative
value and passing it to rand.Intn, which panics. The bare /chunked route
(no wait param) hit this on every request.
Convert the timeout to whole seconds in a guarded helper that keeps
rand.Intn's argument positive, and add a regression test.
2026-06-08 23:58:36 +03:00
..
2026-06-03 16:14:43 -04:00
2026-05-20 11:07:35 +03:00
2026-05-20 10:50:31 +03:00
2026-06-08 23:58:36 +03:00
2026-06-08 23:58:36 +03:00
2026-05-20 11:07:35 +03:00
2024-02-24 23:44:12 +05:30
2026-05-20 11:07:35 +03:00
2024-04-09 08:54:38 +02:00
2026-05-20 11:07:35 +03:00
2026-05-20 10:50:31 +03:00
2026-05-20 11:07:35 +03:00
2024-05-23 10:01:01 +02:00
2026-05-20 11:07:35 +03:00
2024-04-09 08:54:38 +02:00
2026-06-03 16:04:17 -04:00
2026-06-03 16:04:17 -04:00
2024-02-24 23:44:12 +05:30
2024-04-09 08:54:38 +02:00
2026-05-20 11:07:35 +03:00
2024-02-24 23:44:12 +05:30
2026-05-20 11:07:35 +03:00
2026-05-20 10:50:31 +03:00
2026-05-25 12:47:45 +02:00
2024-02-24 23:44:12 +05:30
2024-04-09 08:54:38 +02:00
2025-03-10 21:48:25 +01:00
2024-02-24 23:44:12 +05:30
2026-05-25 12:47:45 +02:00
2024-02-24 23:44:12 +05:30
2026-05-25 12:47:45 +02:00
2026-06-02 23:18:28 -04:00
2026-05-20 11:07:35 +03:00
2024-04-09 08:54:38 +02:00
2026-05-20 11:07:35 +03:00
2026-05-20 10:50:31 +03:00
2026-05-20 11:07:35 +03:00
2026-05-20 11:11:58 +03:00
2024-02-24 23:44:12 +05:30
2024-02-24 23:44:12 +05:30
2024-04-09 08:54:38 +02:00