Skip to main content
Set Connection Timeout
Evan avatar
Written by Evan
Updated over a week ago

Video guide here.

Currently, our system will terminate the connection if there's no data transferred for 15 seconds from either side of the connection.

Setting your connection timeout will help you if your request takes a long time to complete or the opposite if you want to avoid long-lasting connections.

You can set the connection timeout in one of two ways:

  1. Through the default port settings in your dashboard

  2. Using the Proxyrack API

Dashboard

First, select the proxies you would like to use and then click on the "Proxy Endpoints" tab. Scroll down the page until you reach the "Set default port settings" section, as you see in the screenshot below:

Click on the "Add new port" button. You will see a modal appear that allows you to select a port number and the timeout setting.

Select the country you would like from the "GEO targeting country" dropdown and then click "Save".

You will see in the table under "Set default port settings" that the timeout settings have now been saved for this port.

Proxyrack API

You can also set the connection timeout using the Proxyrack API by adding “;timeoutSeconds={number of seconds}” or “-timeoutSeconds-{number of seconds}” after your username wherever you are authenticating. For example, to set the connection timeout to 30 seconds, you would add “;timeoutSeconds=30” or “-timeoutSeconds-30” after your username.

Using the “=” syntax here, you need to encapsulate your username and password in quotation marks. It would look like this: “username;timeoutSeconds=30:password”

Please note that cURL is used below as an example. You do not need to use cURL in order to geo-target. You can do this wherever you have configured your proxies, such as in a browser, code, etc.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
​"=" Syntax: curl -x unmetered.residential.proxyrack.net:10000 -U 'username;timeoutSeconds=60:password' http://example.com

"-" Syntax: curl -x unmetered.residential.proxyrack.net:10000 -U username-timeoutSeconds-60:password http://example.com

Live example here.

Premium Residential:
​​"=" Syntax: curl -x premium.residential.proxyrack.net:10000 -U 'username;timeoutSeconds=60:password' http://example.com

"-" Syntax: curl -x unmetered.residential.proxyrack.net:10000 -U username-timeoutSeconds-60:password http://example.com

Live example here.

Private Residential:
​​"=" Syntax: curl -x private.residential.proxyrack.net:10000 -U 'username;timeoutSeconds=60:password' http://example.com

"-" Syntax: curl -x private.residential.proxyrack.net:10000 -U username-timeoutSeconds-60:password http://example.com

Live example here.

USA Rotating Datacenter:
​​"=" Syntax: curl -x usa.rotating.proxyrack.net:10000 -U 'username;timeoutSeconds=60:password' http://example.com

"-" Syntax: curl -x usa.rotating.proxyrack.net:10000 -U username-timeoutSeconds-60:password http://example.com

Live example here.

Global Rotating Datacenter:
​​"=" Syntax: curl -x global.rotating.proxyrack.net:10000 -U 'username;timeoutSeconds=60:password' http://example.com

"-" Syntax: curl -x global.rotating.proxyrack.net:10000 -U username-timeoutSeconds-60:password http://example.com

Live example here.

The maximum value is 600 seconds.

Did this answer your question?