blob: 3cf5f7e66c28b8acc078cca98cb903f12c53aea7 [file] [log] [blame]
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build aix || darwin || dragonfly || freebsd || illumos || linux || netbsd || windows
package net
import "time"
var testConfigs = []KeepAliveConfig{
{
Enable: true,
Idle: 5 * time.Second,
Interval: 3 * time.Second,
Count: 10,
},
{
Enable: true,
Idle: 0,
Interval: 0,
Count: 0,
},
{
Enable: true,
Idle: -1,
Interval: -1,
Count: -1,
},
{
Enable: true,
Idle: -1,
Interval: 3 * time.Second,
Count: 10,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: -1,
Count: 10,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: 3 * time.Second,
Count: -1,
},
{
Enable: true,
Idle: -1,
Interval: -1,
Count: 10,
},
{
Enable: true,
Idle: -1,
Interval: 3 * time.Second,
Count: -1,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: -1,
Count: -1,
},
{
Enable: true,
Idle: 0,
Interval: 3 * time.Second,
Count: 10,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: 0,
Count: 10,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: 3 * time.Second,
Count: 0,
},
{
Enable: true,
Idle: 0,
Interval: 0,
Count: 10,
},
{
Enable: true,
Idle: 0,
Interval: 3 * time.Second,
Count: 0,
},
{
Enable: true,
Idle: 5 * time.Second,
Interval: 0,
Count: 0,
},
}