This website works better with JavaScript.
Home
Explore
Help
Sign In
p3k
/
XRay
mirror of
https://github.com/aaronpk/XRay.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
77
Wiki
Activity
Browse Source
set connect timeout
pull/39/head
Aaron Parecki
8 years ago
parent
c59ab9a2d6
commit
a7780fb671
No known key found for this signature in database
GPG Key ID:
276C2817346D6056
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/HTTPCurl.php
+ 1
- 0
lib/HTTPCurl.php
View File
@ -73,6 +73,7 @@ class HTTPCurl {
}
curl_setopt
(
$ch
,
CURLOPT_TIMEOUT_MS
,
round
(
$this
->
timeout
*
1000
));
curl_setopt
(
$ch
,
CURLOPT_CONNECTTIMEOUT
,
2
);
}
public
static
function
error_string_from_code
(
$code
)
{
Write
Preview
Loading…
Cancel
Save