Skip to content

Commit e2d305a

Browse files
committed
[FAB-6364] Make keepalive policy less restrictive
Currently the keepalive interval used for client connections (e.g. peer to orderer) is set to 5 min. This setting is also used to determine the the threshold for how often the server will allow pings from clients. 5 min seemed like a good default, but in practice 1 min seems to be a better option Change-Id: I2f2262dfda8320d1f1731d7fd9eacf497e8cef58 Signed-off-by: Gari Singh <[email protected]>
1 parent 7cc510d commit e2d305a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/comm/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424
maxSendMsgSize = 100 * 1024 * 1024
2525
// Default keepalive options
2626
keepaliveOptions = KeepaliveOptions{
27-
ClientKeepaliveTime: 300, // 5 min
27+
ClientKeepaliveTime: 60, // 1 min
2828
ClientKeepaliveTimeout: 20, // 20 sec - gRPC default
2929
ServerKeepaliveTime: 7200, // 2 hours - gRPC default
3030
ServerKeepaliveTimeout: 20, // 20 sec - gRPC default

0 commit comments

Comments
 (0)