Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure plugin start timeout for go-plugin.Client (#4477) #4478

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

nmische
Copy link
Contributor

@nmische nmische commented Jan 25, 2025

Addresses #4477.

The hashicorp/go-plugin client configuration has a default timeout of 60s. This causes steampipe startup to fail if a plugin takes longer than 60s.

This PR ensures a plugin's client is configured with the timeout settings from the steampipe plugin configuration.

It also extends the plugin manager client start timeout from 1 minute to 3 minutes as testing indicated this timeout setting also governed overall steampipe startup. Ideally this timeout would be set to the maximum plugin timeout setting, however I didn't see any easy way to achieve that so opted to extend the default for now.

@@ -64,6 +65,7 @@ func start(steampipeExecutablePath string) (*State, error) {
Cmd: pluginManagerCmd,
AllowedProtocols: []plugin.Protocol{plugin.ProtocolGRPC},
Logger: logger,
StartTimeout: 3 * time.Minute, //TODO: macke this configurable
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The timeout for the plugin manager startup needs to be extended to accommodate longer plugin startup. I didn't see an immediate way to make this configurable, so I extended this from 1 minute to 3 minutes for now.

@pskrbasu
Copy link
Contributor

Thanks @nmische for the contribution. I will take a look at the changes and submit my review. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants