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

Add timeout when reading sites#21

Open
edwh wants to merge 4 commits intokasp3r:masterfrom
Freegle:master
Open

Add timeout when reading sites#21
edwh wants to merge 4 commits intokasp3r:masterfrom
Freegle:master

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