mirror of
https://github.com/go-ping/ping.git
synced 2025-06-25 21:51:46 +00:00
Set default PacketTimeout to infinite
Co-authored-by: Charlie Jonas <charlie@charliejonas.co.uk>
This commit is contained in:
parent
33f7fb601d
commit
8ceb274e5f
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user