blob: 5b57504926a93c80a2012e4d488d857f40d59d65 [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 || 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,
},
}