Skip to content

Commit

Permalink
Merge pull request #30 from no-mole/grpc_dialer
Browse files Browse the repository at this point in the history
feat:修改keepalive默认值
  • Loading branch information
ZHOUGUOKANG authored Dec 6, 2023
2 parents cde7dc0 + 22ce3d3 commit 49428b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grpc_dialer/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (

const (
// KeepAliveTime 在此时间后客户端没看到任何活动,将ping服务器
KeepAliveTime = time.Duration(10) * time.Second
KeepAliveTime = time.Duration(30) * time.Minute

// KeepAliveTimeout 客户端在ping以后等待的时间
KeepAliveTimeout = time.Duration(3) * time.Second
KeepAliveTimeout = time.Duration(20) * time.Second
)

var DefaultDialOptions = []grpc.DialOption{
Expand Down

0 comments on commit 49428b1

Please sign in to comment.