Skip to content

Commit d7e0beb

Browse files
committed
Fix for proxy exiting early
When a proxied core service was accessed before it was ready to accept a connection, due to a start-up, restart, etc of a core service, then the proxy exited instead of continuing to accept new connections. This meant having to restart faasd and hope the race condition worked itself out, or that no incoming requests were made. Tested with Grafana, which seemed to manifest the issue the most. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent ef689d7 commit d7e0beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (p *Proxy) Start() error {
8686
conn.Close()
8787

8888
log.Printf("Unable to dial: %s, error: %s", upstreamAddr, err.Error())
89-
return err
89+
continue
9090
}
9191

9292
go pipe(conn, upstream)

0 commit comments

Comments
 (0)