Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client): Include request in initial subscribe to gRPC endpoint to fix LB connection delay #252

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

vovkman
Copy link
Contributor

@vovkman vovkman commented Dec 4, 2023

Some load balancers (eg. Cloudflare) expect a message to come through before passing a gRPC connection through to origin. Because the current subscribe method connects, and then sends a message, it causes a delay when connecting. This pr adds subscribe_with_request which pushes a request into the channel before sending the subscribe request. This resolves the LB issue

@fanatid fanatid merged commit 4239bb7 into rpcpool:master Dec 4, 2023
3 checks passed
@fanatid
Copy link
Collaborator

fanatid commented Dec 4, 2023

Thanks!

fanatid pushed a commit that referenced this pull request Dec 4, 2023
…LB connection delay (#252)

* send request with subscribe

* remove unused import
@fanatid fanatid added the v1.16 label Dec 7, 2023
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
…connection delay (#252)

* send request with subscribe

* remove unused import

(cherry picked from commit 4239bb7)
fanatid pushed a commit that referenced this pull request Dec 7, 2023
…connection delay (#252)

* send request with subscribe

* remove unused import

(cherry picked from commit 4239bb7)
fanatid pushed a commit that referenced this pull request Dec 7, 2023
…connection delay (#252)

* send request with subscribe

* remove unused import

(cherry picked from commit 4239bb7)
fanatid pushed a commit that referenced this pull request Dec 7, 2023
…fix LB connection delay (backport of #252) (#255)

* send request with subscribe

* remove unused import

(cherry picked from commit 4239bb7)

Co-authored-by: Liam Vovk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants