Skip to content

Commit

Permalink
[FABJ-484] grpc.keepalive_without_calls option added
Browse files Browse the repository at this point in the history
Signed-off-by: Kyoungsun Park <kyoungsun.park.kr@gmail.com>
Change-Id: I521803c4c339faf7c9f019b2f6f60fc3a32da2b7
  • Loading branch information
Kyoungsun Park committed Sep 25, 2019
1 parent 8af3374 commit ef56f74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/hyperledger/fabric/sdk/NetworkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,12 @@ private Node createNode(String nodeName, JsonObject jsonNode, String urlPropName
props.remove("grpc.keepalive_timeout_ms");
props.put("grpc.NettyChannelBuilderOption.keepAliveTimeout", new Object[] {new Long(value), TimeUnit.MILLISECONDS});
}

value = props.getProperty("grpc.keepalive_without_calls");
if (null != value) {
props.remove("grpc.keepalive_without_calls");
props.put("grpc.NettyChannelBuilderOption.keepAliveWithoutCalls", new Object[] { new Boolean(value) });
}
}

// Extract the pem details
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ orderers:
grpc-max-send-message-length: 15
grpc.keepalive_time_ms: 360000
grpc.keepalive_timeout_ms: 180000
grpc.keepalive_without_calls: true

# src/test/fixture/sdkintegration/e2e-2Orgs/v1.3/crypto-config/ordererOrganizations/example.com/tlsca
# tlsCACerts:
Expand Down

0 comments on commit ef56f74

Please sign in to comment.