apify / proxy-chain

Node.js implementation of a proxy server (think Squid) with support for SSL, authentication and upstream proxy chaining.
https://www.npmjs.com/package/proxy-chain
Apache License 2.0
807 stars 137 forks source link

Page loading is slow. #329

Closed kurohoan closed 1 year ago

kurohoan commented 1 year ago

Version 2.0.5 of proxy-chain is used. I am using this module on praywright, but when using proxy the page loads very slowly and times out if it takes more than 30 seconds. I use a fast proxy, but I would like the page to load faster. Could you please give me some tips on how to do this?

jancurn commented 1 year ago

Have you tried connecting to your proxy directly, without proxy-chain? Maybe it's slow after all

kurohoan commented 1 year ago

The proxy I use is a fast one, and most of the time I get a response within two seconds when I access it with the checking tool. However, when using the tool I am developing, proxy-chain, it takes over 30 seconds to load the page and times out.

jancurn commented 1 year ago

Please try to use your proxy directly from Playwright, without the proxy-chain, to ensure proxy-chain is really the issue. If it works, try to upgrade to latest version of proxy-chain and try again. If the issue persists, please send a code you're using. Closing this in the meantime

kurohoan commented 1 year ago

327

We are currently facing the above problem, which is why we cannot update to a version newer than 2.0.5.

For the time being I will try to use the proxy directly from playwright. We will contact you again.

jancurn commented 1 year ago

Please upgrade to latest proxy-chain version, the issue has been fixed

kurohoan commented 1 year ago

Updated to the latest version, but speeds previously remained slow. When I set up the proxy using only playwright without proxh-chain as a trial, I could not access the site in the first place. With proxy-chain, access is still possible.

I am using playwright on electron, is there a connection? This may be out of place, so I'll start a new issue topic on playwright for once.