Make WordPress Core

Changeset 10831


Ignore:
Timestamp:
03/23/2009 10:20:41 PM (15 years ago)
Author:
westi
Message:

Set a short timeout for the SSL discovery support so that we don't block requests until the attempt timesout. Fixes #9380 for 2.7.2 props josephscott

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/functions.php

    r10618 r10831  
    26192619        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    26202620        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
     2621        curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
    26212622
    26222623        curl_exec($ch);
     
    29102911    return $can_clone ? clone( $object ) : $object;
    29112912}
    2912 
    2913 
    29142913?>
Note: See TracChangeset for help on using the changeset viewer.