chore: add swqos client
This commit is contained in:
13
pkg/swqos/clients/common.go
Normal file
13
pkg/swqos/clients/common.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package clients
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"google.golang.org/grpc/keepalive"
|
||||
)
|
||||
|
||||
var kacp = keepalive.ClientParameters{
|
||||
Time: 10 * time.Second, // send pings every 10 seconds if there is no activity
|
||||
Timeout: time.Second, // wait 1 second for ping ack before considering the connection dead
|
||||
PermitWithoutStream: true, // send pings even without active streams
|
||||
}
|
||||
Reference in New Issue
Block a user