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

events: fix slow client connection to empty event stream #10637

Merged
merged 2 commits into from
May 21, 2021

Conversation

h3yduck
Copy link
Contributor

@h3yduck h3yduck commented May 21, 2021

Fixes #10636

Fixed it in the API instead of the client because it probably affects all HTTP clients waiting for any response (at least HTTP headers) before returning the HTTP body to the caller. Sending an initial heartbeat shouldn't do any harm because it should already be handled by all event stream clients.

@hashicorp-cla
Copy link

hashicorp-cla commented May 21, 2021

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – nomad May 21, 2021 15:19 Inactive
@drewbailey drewbailey self-assigned this May 21, 2021
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@drewbailey drewbailey left a comment

Choose a reason for hiding this comment

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

@h3yduck Thanks for the PR, I think starting off with an empty heartbeat makes sense.

@vercel vercel bot temporarily deployed to Preview – nomad May 21, 2021 17:02 Inactive
@drewbailey drewbailey merged commit 6b083c2 into hashicorp:main May 21, 2021
@drewbailey drewbailey added this to the 1.1.1 milestone May 21, 2021
notnoop pushed a commit that referenced this pull request Jun 9, 2021
* events: fix slow client connection to empty event stream

* doc: fix changelog of event stream connection init
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go client connection initialisation to an empty event stream is slow
4 participants