-
Notifications
You must be signed in to change notification settings - Fork 34
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
Cache doesn't work for me #227
Comments
Thank you for the detailed report. These requests should be cachable. We just made some changes for streaming that might be related. I'm working on another bug right now, but will get to this soon. Thanks again! |
JFYI, tried with latest 1.43.15, and experienced the same behavior. |
Can you try again? We've released a LOT of changes |
Hey @wysenynja. Will try later on this week. I'll let you know the results. |
Hey @wysenynja. Just tested latest version on the same configuration. Looks like it's partially working. When I send first curl request, I see it in the socat logs, then multiple curl requests return from the cache(~8) - no entries about my curl on socat logs, then I see my request in the logs again, and next multiple requests return from the cache again(~12-15). It looks like it's cache the entries for multiple seconds only. I try cache with 1Gb and 10Gb, same behaviour. My expectation that cache will be present for longer time. Could you please provide details how it should work, and where it is store the cache? |
Are all of your test queries always Example:
|
Hey @wysenynja, thx for the explanation. I've tried different curl requests now, which should be cached, but it doesn't:
For each curl execution I see socat logs, so they don't cache. Do you know if such requests should be cached by web3_proxy? |
does it not cache at all, or does it not cache as often as you expect it to? because those should be cached. especially the second one |
@wysenynja |
I am running web3_proxy 1.43.11.
I want to test caching mechanism. The idea is to run local socat wich point to my private ethereum node and point web3_proxy to socat, instead of ethereum node. Make curl request to web_proxy 2 time. First time I should see log in the socat as web3_proxy need to request it from ethereum node, second time I should not see the log in the socat, as web3_proxy should return result from cache.
It doesn't work for me, as I see all requests in the socat log.
###How to reproduce
With the following command I am running websocket:
Where eth.hckn.dev - private ethereum node.
Also, I running web3_proxy with the following config:
Where
http://localhost:8546
is the address of local websocket.The command to run web3_proxy:
Make the following curl request to web3_proxy:
where
10.1.193.21
- ip address of the server where web3_proxy is running.Take a look to the socat log with:
Make curl requests multiple times. In the socat log you will see all the requests, but should see only the first one. As I understand cache mechanism doesn't work.
Could you please help me to understand what I am doing wrong, or it's expected behavior?
The text was updated successfully, but these errors were encountered: