-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add wrapper to enforce timeout for extension tables #2077
Add wrapper to enforce timeout for extension tables #2077
Conversation
// Kick off running the query | ||
resultChan := make(chan *generateResult) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love that this has the effect is interrupting no matter what's happening. But I'm also slightly leery of these piling up. Is there any way to clean this up? I assume not. So maybe we need to add something only spawn one generate (per table) at a time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline -- I will add some limits in a follow-up PR
b153a65
to
5f838a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
96c454b
to
0f1f2b7
Compare
tablewrapper
package to ensure that osquery does not ever have to wait on a call togenerate
for more than four minutes by default