14 lines
401 B
Go
14 lines
401 B
Go
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
|
|
}
|