[wp-trac] [WordPress Trac] #9380: xmlrpc.php may give timeout error

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 23 14:28:10 GMT 2009


#9380: xmlrpc.php may give timeout error
--------------------------+-------------------------------------------------
 Reporter:  foks          |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  XML-RPC       |     Version:  2.7.1      
 Severity:  minor         |    Keywords:             
--------------------------+-------------------------------------------------
 xmlrpc.php?rsd will give a timeout error if CURL is enabled on the server
 and the server doesn't listen on port 443.

 The function url_is_accessable_via_ssl in includes/functions.php check if
 SSL is supported by trying to connect to the server on port 443. Timeout
 limit is not specificed so if the server doesn't answer (and doesn't deny
 the request) you get a php timeout.

 I have solved this on my own installation by adding this row in the
 function:
 curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9380>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list