TooTallNate / node-proxy-agent

Maps proxy protocols to `http.Agent` implementations
285 stars 69 forks source link

very slow and easily throw timeout #45

Closed ash0080 closed 4 years ago

ash0080 commented 4 years ago
const agent1  = tunnel.httpOverHttp({
                                       proxy: {
                                         host: 'xxx.xxx.xxx.xxx',
                                         port: xxxx
                                       }
                                     })
  const agent2  = new ProxyAgent(`http://xxx.xxx.xxx.xxx:xxxx`)
  const result = await check(product, cookie, agent2)

compare with tunnel

using agent2 fails and throw timeout, use agent1 works well, I am using 'got' for now, will test with other http-client module when I get some time.