Skip to content

Conversation

@HemangChothani
Copy link
Contributor

@HemangChothani HemangChothani commented Dec 4, 2020

Fixes #181

Added grpc.keepalive_time_ms and grpc.keepalive_timeout_ms for an emulator as it used insecure channel.

Clients are gapic generated client so need to add in respective files:

1:

if channel is None:
channel = self.create_channel(
address=address,
credentials=credentials,
options={
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1,
}.items(),

2 :

if channel is None:
channel = self.create_channel(
address=address,
credentials=credentials,
options={
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1,
}.items(),
)

3:

if channel is None:
channel = self.create_channel(
address=address,
credentials=credentials,
options={
"grpc.max_send_message_length": -1,
"grpc.max_receive_message_length": -1,
}.items(),
)

@HemangChothani HemangChothani requested a review from a team as a code owner December 4, 2020 13:39
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 4, 2020
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Dec 4, 2020
@kolea2
Copy link
Collaborator

kolea2 commented Dec 10, 2020

CC @sushanb

@kolea2
Copy link
Collaborator

kolea2 commented Dec 29, 2020

Is there a way to override the channel settings in the handwritten layer?

@HemangChothani
Copy link
Contributor Author

Yes, I think so. We need to create channel explicitly in handwritten client for all the classes which mentioned above and then create a respective transport class object and pass as an argument for all the classes,so gapic class doesn't create or override the transport class object.

@crwilcox crwilcox merged commit e9637cb into googleapis:master Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add keepalive in grpc channel for Bigtable client

3 participants