8000 Increase default timeouts · moiAK/codebird-php@ed636d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed636d4

Browse files
committed
Increase default timeouts
1 parent e4e6e8f commit ed636d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@ $cb->setTimeout(5000);
471471

472472
If you don't specify the timeout, codebird uses these values:
473473

474-
- connection time = 5000 ms = 5 s
475-
- timeout = 2000 ms = 2 s
474+
- connection time = 3000 ms = 3 s
475+
- timeout = 10000 ms = 10 s
476476

477477
### …disable cURL?
478478

src/codebird.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ class Codebird
116116
/**
117117
* Request timeout
118118
*/
119-
protected $_timeout = 2000;
119+
protected $_timeout = 10000;
120120

121121
/**
122122
* Connection timeout
123123
*/
124-
protected $_connectionTimeout = 5000;
124+
protected $_connectionTimeout = 3000;
125125

126126
/**
127127
*

0 commit comments

Comments
 (0)
0