Uh oh!
There was an error while loading. Please reload this page.
Set gRPC message options and keepalive. - #4269
Conversation
This causes the `.open` method on subscriptions to return a future, which can be used to block the main thread or trap exceptions.
lukesneeringer
commented
Oct 26, 2017
Ignore the long list of commits that included #4265; squash will fix it. :-) |
dhermes
left a comment
There was a problem hiding this comment.
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.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 'grpc.max_send_message_length': -1, | ||
| 'grpc.max_receive_message_length': -1, | ||
| 'grpc.keepalive_time_ms': 30000, | ||
| }.items(), |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| import grpc | ||
| from google import auth | ||
| from google.api_core import grpc_helpers |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| 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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| self._batches = {} | ||
| @property | ||
| def target(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.