Sending requests via proxy is too slow

dovecream

Banned by request of the account holder.
Joined
Apr 5, 2010
Messages
161
Reaction score
39
I bought proxies and I’m making Guzzle requests to the API via proxies. Some requests are fast, 1-3 seconds, some last 30 seconds, a minute or more.

I can't figure out why is that? Why are API requests taking so long via proxies? They are not free proxies. I tried to test by sending the same requests directly from my own server and it takes 1-2 seconds each request, every time.

Those proxies are located near my country, they are located in neighboring countries.
 
What proxies do you use? Have you checked with your provider if they do a thread-limit?

Some providers throttle your connection and limit the number of threads you can open per second.
 
Hey, try using HttpClient instead of WebClient/HttpWebRequest. Also another thing is that DNS resolve can take longer on proxies, due to some .NET stuff, but it should not be that huge of a delay, try swapping to HttpClient first, I swapped some time ago and it got rid of those delays.
 
Hey, try using HttpClient instead of WebClient/HttpWebRequest. Also another thing is that DNS resolve can take longer on proxies, due to some .NET stuff, but it should not be that huge of a delay, try swapping to HttpClient first, I swapped some time ago and it got rid of those delays.

That really helped?
 
Back
Top