veyron/runtimes/google/ipc: move to using modules instead of blackbox.
Change-Id: I12ef958cc04ed91c6315ce402d5b470ac323eb6c
diff --git a/runtimes/google/ipc/server.go b/runtimes/google/ipc/server.go
index ddefad2..608424f 100644
--- a/runtimes/google/ipc/server.go
+++ b/runtimes/google/ipc/server.go
@@ -384,12 +384,17 @@
// (2) Reconnect to the proxy unless the server has been stopped
backoff := min
ln = nil
+ // TODO(ashankar,cnicolaou): this code is way too confusing and should
+ // be cleaned up.
for ln == nil {
select {
case <-time.After(backoff):
resolved, err := s.resolveToAddress(proxy)
if err != nil {
vlog.VI(1).Infof("Failed to resolve proxy %q (%v), will retry in %v", proxy, err, backoff)
+ if backoff = backoff * 2; backoff > max {
+ backoff = max
+ }
break
}
var ep naming.Endpoint