Skip to content

cookie support in Ethereum::HttpClient #22

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

shao1555
Copy link

Motivation

I'm operating several Ethereum server instances behind load balancer such as ELB.
some JSON-RPC methods such as filter related functions should process by same backend instance.

e.g. eth_newFilter and eth_getFilterChanges requests should be execute in same instance.

To resolve this problem, using cookie based session affinity feature to load balancer, then make this client compatible for its feature.

Resolution

Handles set-cookie header if call with cookie: true header.
This implementation is very limited, lack of some basic implementation such as expiration and persistence.

Reference

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.

1 participant