Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

feat: add keep alive timeout#182

Merged
crwilcox merged 2 commits intogoogleapis:masterfrom
MaxxleLLC:bigtable_add_keep_alive
Feb 9, 2021
Merged

feat: add keep alive timeout#182
crwilcox merged 2 commits intogoogleapis:masterfrom
MaxxleLLC:bigtable_add_keep_alive

Conversation

@HemangChothani
Copy link
Copy Markdown
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 review from a team, crwilcox, kolea2 and tseaver 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
Copy Markdown
Contributor

kolea2 commented Dec 10, 2020

CC @sushanb

@kolea2
Copy link
Copy Markdown
Contributor

kolea2 commented Dec 29, 2020

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

@HemangChothani
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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