Saturday 16 September 2017

0/300

I am working with random Proxies and some of them are not working or really slow. I am using Nodejs and the Request module http://ift.tt/2wy3iib] I tried to set the timeout like this:requestOptions = { proxy: 'http://xxxxxxxxx:xxx', timeout: 5000, localAddress: '127.0.0.1', jar: true, headers: { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en;q=0.5', 'Cache-Control': 'max-age=0', 'Connection': 'keep-alive', 'DNT': 1 } But it still can take forever. Is there any other way to timeout faster?

Submitted September 17, 2017 at 12:01AM by johnnyXcrane

No comments:

Post a Comment