Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

limit search request time to 30 seconds #43

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

Conversation

hp4k1h5
Copy link
Contributor

@hp4k1h5 hp4k1h5 commented Apr 3, 2021

underlying libs (torrent-search-api) aren't setting a timeout for search requests, as described in #22.
this pr tries to address this by adding a promise race with a cancel timeout of 30 seconds.

if you'd prefer a config setting for this value, i can add that, but would prefer you decide what to call it and where it lives in the config. thanks

dependencies like "timed-out" and their sub-dependencies are accessing
`req._headers` directly instead of using e.g. `res.getHeaders()`

long term, upstream packages should be updated or replaced
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.

None yet

1 participant