Commit 38f762ff authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1782062: Make is_valid_url() timout faster if no connection



behatnotneeded

Change-Id: I2d8107d71f0bc08367081dc129d2bdb4ec31d68c
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent f76a72f3
......@@ -4873,6 +4873,7 @@ function is_valid_url($url) {
CURLOPT_URL => $url,
CURLOPT_HEADER => true,
CURLOPT_NOBODY => true,
CURLOPT_CONNECTTIMEOUT => 2,
),
true
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment