Setting client timeouts#
| Exit type | Suggested connect / read timeout |
|---|---|
| Datacenter, ISP | 10 s / 30 s |
| Residential | 15 s / 45 s |
| Mobile | 20 s / 60 s |
Idle connections#
Gateways close connections that stay idle for a while (60 seconds at ProxShift) regardless of client timeouts. Long-polling and streaming need a keep-alive message or a fresh connection.
How it works at ProxShift#
ProxShift returns 504 target_timeout when the destination does not answer in time, closes idle connections after 60 seconds and imposes no limit on connection duration while data flows.