[PR #30] [CLOSED] Add Timeout for curl into the PveClientBase | using CURLOPT_TIMEOUT_M… #34

Closed
opened 2026-02-26 17:32:15 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Corsinvest/cv4pve-api-php/pull/30
Author: @noxomix
Created: 2/27/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 48adbc6 Add Timeout for curl into the PveClientBase | using CURLOPT_TIMEOUT_MS-parameter

📊 Changes

1 file changed (+36 additions, -0 deletions)

View changed files

📝 src/PveClientBase.php (+36 -0)

📄 Description

Ive added some timeout functionality. Using the CURLOPT_TIMEOUT_MS curl flag.
By default it will be set to 32000 which is 32 seconds.

I didnt add any tests yet, but ive tested it in my laravel project.

Best Regards
Theo


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Corsinvest/cv4pve-api-php/pull/30 **Author:** [@noxomix](https://github.com/noxomix) **Created:** 2/27/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`48adbc6`](https://github.com/Corsinvest/cv4pve-api-php/commit/48adbc6da9b8e534fafef325e30269b59c42cd40) Add Timeout for curl into the PveClientBase | using CURLOPT_TIMEOUT_MS-parameter ### 📊 Changes **1 file changed** (+36 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/PveClientBase.php` (+36 -0) </details> ### 📄 Description Ive added some timeout functionality. Using the `CURLOPT_TIMEOUT_MS` curl flag. By default it will be set to 32000 which is 32 seconds. I didnt add any tests yet, but ive tested it in my laravel project. Best Regards Theo --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 17:32:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-api-php#34
No description provided.