#9380 closed defect (bug) (fixed)
xmlrpc.php may give timeout error
Reported by: | foks | Owned by: | josephscott |
---|---|---|---|
Milestone: | 2.7.2 | Priority: | normal |
Severity: | minor | Version: | 2.7.1 |
Component: | XML-RPC | Keywords: | has-patch |
Focuses: | Cc: |
Description
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);
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Nice catch. I've added a basic patch to wp-includes/functions.php with adds your change.