Skip to content

Set gRPC message options and keepalive. - #4269

Merged
lukesneeringer merged 12 commits into
googleapis:masterfrom
lukesneeringer:custom-channel
Oct 30, 2017
Merged

Set gRPC message options and keepalive.#4269
lukesneeringer merged 12 commits into
googleapis:masterfrom
lukesneeringer:custom-channel

Conversation

@lukesneeringer

@lukesneeringerlukesneeringer commented Oct 26, 2017

Copy link
Copy Markdown
Contributor

Fixes#4083, although the UNAVAILABLE errors still occur sometimes for other reasons.

That will need to be handled with new retry logic, and is being tracked as #4234.

Addendum: Fixes#3886.

@lukesneeringerlukesneeringer self-assigned this Oct 26, 2017
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 26, 2017
@lukesneeringer

Copy link
Copy Markdown
ContributorAuthor

Ignore the long list of commits that included #4265; squash will fix it. :-)

@dhermesdhermes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'd love it if you addressed my nits 😀

target = '{host}:{port}'.format(
host=subscriber_client.SubscriberClient.SERVICE_ADDRESS,
port=subscriber_client.SubscriberClient.DEFAULT_SERVICE_PORT,
)

This comment was marked as spam.

'grpc.max_send_message_length': -1,
'grpc.max_receive_message_length': -1,
'grpc.keepalive_time_ms': 30000,
}.items(),

This comment was marked as spam.

host=subscriber_client.SubscriberClient.SERVICE_ADDRESS,
port=subscriber_client.SubscriberClient.DEFAULT_SERVICE_PORT,
)
kwargs.setdefault('channel', grpc_helpers.create_channel(

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

import grpc

from google import auth
from google.api_core import grpc_helpers

This comment was marked as spam.

host=subscriber_client.SubscriberClient.SERVICE_ADDRESS,
port=subscriber_client.SubscriberClient.DEFAULT_SERVICE_PORT,
)
kwargs.setdefault('channel', grpc_helpers.create_channel(

This comment was marked as spam.

@lukesneeringer
lukesneeringer merged commit 743ade4 into googleapis:masterOct 30, 2017
@lukesneeringer
lukesneeringer deleted the custom-channel branch October 30, 2017 15:51
self._batches = {}

@property
def target(self):

This comment was marked as spam.

parthea pushed a commit that referenced this pull request Mar 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@lukesneeringer@dhermes@googlebot