mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-08 16:06:47 +00:00
Close connection if unable to dial upstream
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
This commit is contained in:
parent
f6167e72a9
commit
887c18befa
@ -84,6 +84,8 @@ func (p *Proxy) Start() error {
|
||||
|
||||
upstream, err := net.Dial("tcp", upstreamAddr)
|
||||
if err != nil {
|
||||
conn.Close()
|
||||
|
||||
log.Printf("unable to dial to %s, error: %s", upstreamAddr, err.Error())
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user