Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #1618
Browse files Browse the repository at this point in the history
- Fix plugin load timeout in LoadPlugin and startPlugin
  by blocking until receiving plugin's response or timeout expiry
  • Loading branch information
rashmigottipati committed May 12, 2017
1 parent 3addb66 commit cb68359
Show file tree
Hide file tree
Showing 6 changed files with 374 additions and 299 deletions.
2 changes: 2 additions & 0 deletions control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ type runsPlugins interface {
SetPluginManager(managesPlugins)
Monitor() *monitor
runPlugin(string, *pluginDetails) error
SetPluginLoadTimeout(int)
}

type managesPlugins interface {
Expand Down Expand Up @@ -174,6 +175,7 @@ func OptSetConfig(cfg *Config) PluginControlOpt {
c.Config = cfg
c.pluginManager.SetPluginConfig(cfg.Plugins)
c.pluginManager.SetPluginLoadTimeout(c.Config.PluginLoadTimeout)
c.pluginRunner.SetPluginLoadTimeout(c.Config.PluginLoadTimeout)
}
}

Expand Down
Loading

0 comments on commit cb68359

Please sign in to comment.