subfinder / research

❄️ Research project for SubFinder core API V2
MIT License
35 stars 8 forks source link

add context to the API #59

Closed picatz closed 5 years ago

picatz commented 5 years ago

This is a pretty big PR.

It focuses on adding the context package to the API. This will hopefully help make SubFinder's code extra efficient for server-side use, by allowing for the deliberating cancelation of the execution of any sources during the enumeration process.

This is useful for cases like rate-limiting wherein we are only interested in enumerating 1000 domains as a free server, and want to be able to deliberately stop enumerating and have the code cleanup after itself efficiently.