Skip to content

Commit 80beda4

Browse files
committed
Allow client to override $timeout_connect and $timeout_request
1 parent 7a2858c commit 80beda4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/Hackapi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class Hackapi{
5858
private $cookies_file ="/tmp/cookies_Hackapi"; // file where cookies are stored
5959
private $base_url =""; // the base url made of http(s)://host
6060

61-
private $timeout_connect =2; // CURL's Connection Timeout (sec)
62-
private $timeout_request =5; // CURL's Request Timeout (sec)
61+
protected $timeout_connect =2; // CURL's Connection Timeout (sec)
62+
protected $timeout_request =5; // CURL's Request Timeout (sec)
6363

6464
private $_relogin_count =0; // used to prevent infinite Loop when using CallEndpointWhenLogged in the ApiLogin method
6565
private $_relogin_max =3; // max count to try to relogin (when in an infinite loop condition)

0 commit comments

Comments
 (0)