bandwhich
bandwhich copied to clipboard
Retry DNS only after timeout
Right now, when we do our reverse-dns queries (getting the hostname of an ip address), if the request failed, we retry immediately. This can cause a lot of connections (also visible in the app!) to be opened if a request repeatedly fails.
It would be nice if we have some sort of progressive backoff mechanism for this... something like: wait for 1 second before retrying, then wait for 2, 4, etc.
Correct me if I'm wrong, currently we will retry every second?
Yep. I have a bit of a spotty internet connection though, so sometimes my whole connections pane is filled with our own DNS requests for minutes on end (which we somehow classify as unknown, btw). I thought this can make things a little friendlier.
Hi @imsnif I would like to work on it. Could you please give me start point?
@bigtoast is already working on it here: https://github.com/imsnif/bandwhich/pull/133
@imsnif it looks like this was never completed and is quite old. Still relevant? Happy to pick it up