Commit 18e147f3 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

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

parents 6c5373d6 38f762ff
......@@ -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