When using the Cloudmersive API Clients, you may wish to configure the connection timeout. By setting the connection timeout to a larger value, you can ensure that long-running transactions / large documents will complete.
To configure the .NET Framework client, simply add this line of code into your application:
Configuration.Default.Timeout = 300000;
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).
To configure the .NET Core client, simply add this line of code into your application:
Configuration.Default.Timeout = 300000;
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).
To configure the Ruby client timeout, simply add this line of code into your application:
config.timeout = 300000"
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).
To configure the Java client, simply add this line of code into your application:
client.setReadTimeout(300000); client.setWriteTimeout(300000); client.setConnectTimeout(300000);
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).
To configure the Node.js client, simply add this line of code into your application:
defaultClient.timeout = 300000;
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).
To configure the PHP client, simply modify the code that creates the GuzzleHttp client to pass in a timeout parameter:
new GuzzleHttp\Client('timeout' => 300000)
In this example, we set the connection timeout to 300 seconds (the parameter is specified in milliseconds).