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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user