GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Set gRPC message options and keepalive. by lukesneeringer · Pull Request #4269 · googleapis/google-cloud-python

Conversation

@lukesneeringer

@lukesneeringer lukesneeringer commented Oct 26, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Luke Sneeringer added 10 commits October 26, 2017 11:12
Luke Sneeringer
Add futures for subscriptions.
978775b
This causes the `.open` method on subscriptions to return a future,
which can be used to block the main thread or trap exceptions.
Luke Sneeringer
Re-factor futures into a hierarchy; add tests.
823c6a3
Luke Sneeringer
Document the futures coming from subscriber.
c358ff6
Luke Sneeringer
Add a keeyalive.
1c31d8e
Luke Sneeringer
Ctrl+S, a thing.
1fd38d5
Luke Sneeringer
Address incorrect docs.
4e469aa
Luke Sneeringer
Remove _wait
9112aa7
Luke Sneeringer
Futures are canonically google.api_core.futures.Future.
03076f8
Luke Sneeringer
Merge branch 'subscribe-future' into custom-channel
b586128
Luke Sneeringer
Merge branch 'public-master' into custom-channel
7aa4bb5
@lukesneeringer lukesneeringer self-assigned this Oct 26, 2017
@lukesneeringer
lukesneeringer requested a review from theacodes October 26, 2017 22:05
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 26, 2017
@lukesneeringer

lukesneeringer commented Oct 26, 2017

Copy link
Copy Markdown
Contributor Author

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes approved these changes Oct 26, 2017
View reviewed changes

@dhermes dhermes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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 😀

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pubsub/google/cloud/pubsub_v1/subscriber/client.py Outdated
target = '{host}:{port}'.format(
host=subscriber_client.SubscriberClient.SERVICE_ADDRESS,
port=subscriber_client.SubscriberClient.DEFAULT_SERVICE_PORT,
)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pubsub/google/cloud/pubsub_v1/subscriber/client.py Outdated
'grpc.max_send_message_length': -1,
'grpc.max_receive_message_length': -1,
'grpc.keepalive_time_ms': 30000,
}.items(),

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pubsub/google/cloud/pubsub_v1/subscriber/client.py Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes reviewed Oct 26, 2017
View reviewed changes
Comment thread pubsub/google/cloud/pubsub_v1/subscriber/client.py
import grpc

from google import auth
from google.api_core import grpc_helpers

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pubsub/google/cloud/pubsub_v1/subscriber/client.py Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Luke Sneeringer added 2 commits October 30, 2017 07:42
Luke Sneeringer
Address @dhermes feedback; add emulator logic.
4e1518b
Luke Sneeringer
Add unit tests for emulator host.
c82445e
@lukesneeringer
lukesneeringer merged commit 743ade4 into googleapis:master Oct 30, 2017
@lukesneeringer
lukesneeringer deleted the custom-channel branch October 30, 2017 15:51
dhermes
dhermes reviewed Oct 30, 2017
View reviewed changes
Comment thread pubsub/google/cloud/pubsub_v1/publisher/client.py
self._batches = {}

@property
def target(self):

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

parthea pushed a commit that referenced this pull request Mar 2, 2026
@lukesneeringer
Set gRPC message options and keepalive. (#4269)
712e9ba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@theacodes theacodes Awaiting requested review from theacodes
1 more reviewer
@dhermes dhermes dhermes approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lukesneeringer lukesneeringer

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lukesneeringer @dhermes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.