API requests to SolusVM ended due to timeouts

Have more questions? Submit a request

Applicable to:

  • SolusVM

Symptoms 

API requests to SolusVM, like removal of a VPS, exceed timeouts and end up in error.

Tuning of SolusVM webserver does not help.

Cause

Insufficient values for curl timeouts on the client side.

Resolution

Review the API call code and make sure that values for the following parameters have sufficient values:

CONFIG_TEXT: curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);

Set it as 0 for unlimited values:

CONFIG_TEXT: curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.