Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Add timeout when reading sites #21

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add timeout when reading sites #21

wants to merge 4 commits into from

Conversation

edwh
Copy link

@edwh edwh commented Oct 22, 2021

Some sites (e.g. https://www.superdrug.com in my case) hang the HTTP request and don't return in a reasonable time. Perhaps this is some anti-DoS measure.

This PR adds a simplistic 30s fallback timer to avoid the code hanging indefinitely.

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

Successfully merging this pull request may close these issues.

1 participant