TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
872 stars 229 forks source link

timeout not work #173

Closed MvCraK closed 11 months ago

MvCraK commented 1 year ago

for example

const agent = new HttpsProxyAgent('http://220.185.28.254:64256', { timeout: 5 });

axios(url, {
    proxy: false,
    httpAgent: agent,
    httpsAgent: agent,
})

timeout not work

phapntm commented 1 year ago

i got same issue. including axios timeout: axios(url, { httpsAgent: agent, timeout: 10, })

TooTallNate commented 11 months ago

Closing due to inactivity and insufficient information/reproduction.

Maximvdw commented 9 months ago

this is indeed an issue. Timeout is ignored

kilroyjones commented 8 months ago

Same getting timeout as ignored on similar request as above:

const httpsAgent = new HttpsProxyAgent(
  `http:"/user:pass@proxy.com:port`,
  {
    timeout: 5000,
  }
);
const response: AxiosResponse = await axios.get(url, {
  proxy: false,
  httpsAgent: httpsAgent,
});

Hangs is all.