chore: add swqos client

This commit is contained in:
2025-12-26 11:13:31 +08:00
parent b484273cba
commit 0d2e29cacf
19 changed files with 839 additions and 3 deletions

View 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
}