mirror of
https://github.com/go-ping/ping.git
synced 2025-09-26 05:04:24 +00:00
Set default PacketTimeout to infinite
Co-authored-by: Charlie Jonas <charlie@charliejonas.co.uk>
This commit is contained in:
2
ping.go
2
ping.go
@@ -96,7 +96,7 @@ func New(addr string) *Pinger {
|
|||||||
RecordRtts: true,
|
RecordRtts: true,
|
||||||
Size: timeSliceLength + trackerLength,
|
Size: timeSliceLength + trackerLength,
|
||||||
Timeout: time.Duration(math.MaxInt64),
|
Timeout: time.Duration(math.MaxInt64),
|
||||||
PacketTimeout: time.Duration(1 * time.Second),
|
PacketTimeout: time.Duration(math.MaxInt64),
|
||||||
Tracker: r.Uint64(),
|
Tracker: r.Uint64(),
|
||||||
|
|
||||||
addr: addr,
|
addr: addr,
|
||||||
|
Reference in New Issue
Block a user