mirror of
https://github.com/go-ping/ping.git
synced 2025-07-06 18:48:44 +00:00
Make default Timeout "forever"
Make the default Timeout setting the maximum Go Duration, which is 290 years. Effectively forever. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
52eed920f9
commit
b6486c6f1f
2
ping.go
2
ping.go
@ -91,7 +91,7 @@ func New(addr string) *Pinger {
|
|||||||
Interval: time.Second,
|
Interval: time.Second,
|
||||||
RecordRtts: true,
|
RecordRtts: true,
|
||||||
Size: timeSliceLength,
|
Size: timeSliceLength,
|
||||||
Timeout: time.Second * 100000,
|
Timeout: time.Duration(math.MaxInt64),
|
||||||
Tracker: r.Int63n(math.MaxInt64),
|
Tracker: r.Int63n(math.MaxInt64),
|
||||||
|
|
||||||
addr: addr,
|
addr: addr,
|
||||||
|
Loading…
Reference in New Issue
Block a user