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

Add timeout to feed fetch request #89

Merged

Conversation

eciavatta
Copy link
Contributor

When the threats watcher cron runs it first download the contents of the feeds for each rss. The routine that download each feed is sequential. This is a problem when the connection used to download a feed hangs, because it blocks the entire process indefinitely.

To fix this, I added a 60 second timeout for each request.

@Felix83000
Copy link
Collaborator

Thanks. You are right.

Merging your idea.

@Felix83000 Felix83000 merged commit 32dd483 into thalesgroup-cert:master Dec 14, 2022
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