mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
ConnTimeout (default 5s) caps TCP connect + TLS handshake via net.Dialer and Transport.TLSHandshakeTimeout. Timeout (default 5m) caps the overall request including body read. Previously a single 30s timeout covered both, which was too short for large downloads and too long for connection failures.