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

Commit

Permalink
Merge pull request #1619 from rashmigottipati/fix-timeout
Browse files Browse the repository at this point in the history
Fix plugin load timeout in LoadPlugin and startPlugin
  • Loading branch information
rashmigottipati authored May 12, 2017
2 parents 3addb66 + cb68359 commit 2c78b9f
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 2c78b9f

Please sign in to comment.