1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

Merge pull request #3502 from nathanleclaire/plugin_exit

Add code to exit when heartbeat call fails
This commit is contained in:
Nathan LeClaire
2016-06-13 17:52:14 -07:00
committed by GitHub

View File

@@ -177,7 +177,10 @@ func (f *DefaultRPCClientDriverFactory) NewRPCClientDriver(driverName string, ra
return
case <-time.After(heartbeatInterval):
if err := c.Client.Call(HeartbeatMethod, struct{}{}, nil); err != nil {
log.Warnf("Error attempting heartbeat call to plugin server: %s", err)
log.Warnf("Wrapper Docker Machine process exiting due to closed plugin server (%s)", err)
if err := c.close(); err != nil {
log.Warn(err)
}
}
}
}