From b6486c6f1f2d7aa4e017c9571730d467c4d4a2b8 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Fri, 6 Nov 2020 14:02:07 +0100 Subject: [PATCH] Make default Timeout "forever" Make the default Timeout setting the maximum Go Duration, which is 290 years. Effectively forever. Signed-off-by: Ben Kochie --- ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping.go b/ping.go index d311b17..66beed1 100644 --- a/ping.go +++ b/ping.go @@ -91,7 +91,7 @@ func New(addr string) *Pinger { Interval: time.Second, RecordRtts: true, Size: timeSliceLength, - Timeout: time.Second * 100000, + Timeout: time.Duration(math.MaxInt64), Tracker: r.Int63n(math.MaxInt64), addr: addr,