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

server/eth: websocket header subscriptions and less frequent http polling #2490

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

buck54321
Copy link
Member

@buck54321 buck54321 commented Aug 28, 2023

We weren't using header subscriptions with WebSocket provider connections, so were polling every second by default.

  1. Add WebSocket header subscriptions to minimize requests.

  2. Automatically increase the poll interval for HTTP connections if the IP is not a loopback address. Previously, the poll interval could be modified by setting the blockPollIntervalStr with ldflags at compile-time, but this is a little more user friendly, I think, and captures the intent just the same.

@buck54321 buck54321 changed the title server/eth: use 10 second tip cache for non-loopback rpc providers server/eth: websocket header subscriptions and less frequent http polling Aug 28, 2023
@buck54321 buck54321 merged commit d926995 into decred:master Sep 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants