getoutreach / localizer

⛵ A no-frills local development tool for service developers working in Kubernetes
https://blog.jaredallard.me/localizer-an-adventure-in-creating-a-reverse-tunnel-and-tunnel-manager-for-kubernetes/
Apache License 2.0
145 stars 12 forks source link

infinite loop after waking from sleep #231

Open camerondavison opened 1 year ago

camerondavison commented 1 year ago

If my laptop goes to sleep for a long time localizer will go into an infinite loop of trying to open endpoints

I can usually resolve this pretty quickly by just restarting it

I bring this up because I can think of a couple of things that might be good features worth thinking about.

  1. notice that the app has been asleep and missed a bunch of events and redo the internal state (may be connected to #19 )
  2. limit the number of times a host file can be updated in a time period maybe once every 5 seconds or something (updating the host file a bunch of times causes the machine to have trouble with DNS)
  3. just die if localizer missed a bunch of events
jaredallard commented 1 year ago

These all seem like pretty good improvements!

trobertsonsf commented 4 months ago

This would be very helpful!