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

Drop retry if queued #2

Open
r3a1d3a1 opened this issue Feb 17, 2024 · 1 comment
Open

Drop retry if queued #2

r3a1d3a1 opened this issue Feb 17, 2024 · 1 comment

Comments

@r3a1d3a1
Copy link

r3a1d3a1 commented Feb 17, 2024

Hey Vitaly,

Thanks for the handy project!
I've not worked with Rust before, so I was wondering whether you could add a few lines of code to do what the title suggests.
More precisely, if I dig e.g. google.com twice in a row very quickly, I'd like the second request to get ignored. (Since the first one is already pending.) Or ideally, but probably involving more code, return a cached response once the first one is resolved.

Thanks again!

P.S. The min-ttl functionality of this project is my main usage, so if you've abandoned this, but know another repo with the same capability, please let me know :)

@vi
Copy link
Owner

vi commented Feb 17, 2024

I haven't used dnscache for myself for a long time.

If you need just minttl then maybe a simpler DNS proxy (without cache) can be implemented that just patches TTL without other things?

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

No branches or pull requests

2 participants