link-preview icon indicating copy to clipboard operation
link-preview copied to clipboard

Add timeout when reading sites

Open edwh opened this issue 3 years ago • 0 comments

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.

edwh avatar Oct 22 '21 08:10 edwh