[fix] 修改心跳包间隔, 避免太过频繁
This commit is contained in:
		
							parent
							
								
									070fcafd7f
								
							
						
					
					
						commit
						83343caadb
					
				| @ -469,7 +469,7 @@ func NewGrpcall(addr string, protosets []string, opts ...grpc.DialOption) (g *Gr | ||||
| 
 | ||||
| 	opts = append(opts, | ||||
| 		grpc.WithKeepaliveParams(keepalive.ClientParameters{ | ||||
| 			Time:                10 * time.Second, // 心跳包时间间隔
 | ||||
| 			Time:                30 * time.Second, // 心跳包时间间隔
 | ||||
| 			Timeout:             5 * time.Second,  // 心跳包超时时间
 | ||||
| 			PermitWithoutStream: true,             // 允许在没有活动流时发送心跳包
 | ||||
| 		}), | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user