Slow responses, timeouts and dropped connections
Most timeout reports turn out to be a client configured for datacenter latency talking to a residential route. The rest usually come from settings around the proxy: a VPN, the rotation mode or the thread count.
Set the timeout to thirty seconds
Building a route through a household connection takes longer than reaching a server in a datacenter. A five second timeout discards requests that would have completed, and the run looks unreliable when it was only impatient.
The first request of a sticky session is the slowest, because that is when the route is established. Subsequent requests through the same session are faster.
Timeouts that work
requests.get(url, proxies=proxies, timeout=30)
page.goto(url, timeout=30000) # Playwright, milliseconds
DOWNLOAD_TIMEOUT = 30 # ScrapyTelling the layers apart
A residential request travels from your computer to our gateway, from there to a home device in the country you chose, and only then to the site. The main gateway is in Amsterdam. The slowest part is usually the home device itself, because it sits on an ordinary home internet line.
Static proxies (IPv4, ISP, IPv6) have a shorter route, so if a static address is slow the destination is the likely cause, especially when it is slow on one site and fast on others. If a residential exit is slow, the exit device may simply be on a poor connection, and a new session will pick a different one.
A useful check is to fetch a lightweight endpoint through the same session. If that returns quickly and your target does not, the proxy is fine.
Separating proxy from target
# fast? then the route is healthy
curl -w '%{time_total}\n' -o /dev/null -s \
-x login_c_US_s_5_ttl_15m:password@proxy.sotaproxy.com:10000 \
https://api.ipify.orgSwitch off VPN and WARP
A VPN or Cloudflare WARP running on the same computer sends the proxy traffic through one more server, often in another country. That adds delay and can break connections. Turn it off and compare the speed.
The exception is a network that blocks the connection to our server: then WARP is the workaround, see the page on a proxy that does not work.
In the Americas: try the US entry point
Because the main gateway is in Europe, a request from the Americas to an American or Brazilian address crosses the ocean twice. There is a second residential entry point in San Jose, USA: replace the host with us.proxy.sotaproxy.com and keep the same login, password and port.
It does not always help: when the home device is the slow part, the gateway location makes little difference. Measure both hosts and keep the faster one.
Same login, another host
login:password@proxy.sotaproxy.com:10000 main entry (Amsterdam)
login:password@us.proxy.sotaproxy.com:10000 US entry (San Jose)Rotation on every request
With General (each request) rotation every request gets a new address, and each time a new route through a new home device has to be built. That is slower and fails more often than keeping one address. For work where you log in or open many pages in a row, use Sticky (session).
A sticky session can still drop, because the home device may go offline before the session ends. Build a retry into your script instead of counting on the full session length. The rotation of a list is set when the list is created, so for another rotation create a new list.
Throughput is not latency
More threads do not make individual requests faster, and past the destination tolerance they make everything slower: requests queue up and sites start rate limiting you. Lower the thread count and check whether the speed per request improves.
Spread work across more addresses or more sessions instead of more threads on one. Each port of a residential list is a separate proxy with its own address, so extra ports are the simple way to do it.
Reusing connections helps more than most tuning: a pooled client removes a handshake from every request.
A budget that works in practice
Timeout values are usually copied from a datacenter setup and never revisited. These are the numbers that hold up against residential routes without leaving workers stuck for minutes.
Sensible defaults
Connect timeout 10 seconds
Read timeout 30 seconds
Total per request 30 seconds
Retries 2, each on a different address
Backoff 1s, 3s, then give up on that target for a while
# Static addresses tolerate tighter values: a 10 second total
# is reasonable there and will surface real problems faster.What to send support
If it is still slow, send us the proxy, the country you connect from, the site, and the timing from this command run two or three times.
Measuring one request
curl -w '%{time_connect}s connect, %{time_total}s total\n' -o /dev/null -s \
-x http://login:password@proxy.sotaproxy.com:10000 https://api.ipify.org