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

Make the timeout in FindNodesWithoutDeserializing configurable #251

Open
TristanSpeakEasy opened this issue Feb 13, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@TristanSpeakEasy
Copy link
Contributor

This timeout for reference https://github.com/pb33f/libopenapi/blob/main/utils/utils.go#L118

Will submit a PR to bump it to 500ms for now if that is okay

@daveshanley
Copy link
Member

daveshanley commented Feb 14, 2024

This timeout exists to prevent run-away lookups. This does not happen with any of the built in vacuum rules anymore, but it used to with the OWASP rules, which means any built-in functions have the potential to run-away into an endless loop.

The timeout should be configurable.

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

No branches or pull requests

2 participants