chill117 / proxy-verifier

NodeJS module to check proxies: if functional, anonymity level, tunneling, supported protocols.
MIT License
76 stars 16 forks source link

Add support for a custom request timeout option #21

Open joviwap opened 6 years ago

joviwap commented 6 years ago

The option timeout for request fires an event that must be listen and processed. When validating proxies, you expect to get an error in those proxies that fire a timeout. More information about hoy timeout option works can be found here: https://github.com/nodejs/node/issues/12005

I just added a minimum amount of code to support this behaviour. I test it and it works fine.