#926426: load a static file in system_check_http_request() to avoid deadlocks on single threaded PHP workers. From: Damien Tournoud --- system/system.module | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git modules/system/system.module modules/system/system.module index a9bb5d9..c4c30d8 100644 --- modules/system/system.module +++ modules/system/system.module @@ -3220,8 +3220,10 @@ function system_time_zones($blank = NULL) { * TRUE if this installation can issue HTTP requests. */ function system_check_http_request() { - // Try to get the content of the front page via drupal_http_request(). - $result = drupal_http_request(url('', array('absolute' => TRUE)), array('max_redirects' => 0)); + global $base_url; + // Try to get the content of the front page via drupal_http_request(). Use + // a static file to avoid deadlocking single-threaded PHP processes. + $result = drupal_http_request($base_url . '/misc/drupal.js', array('max_redirects' => 0)); // We only care that we get a http response - this means that Drupal // can make a http request. $works = isset($result->code) && ($result->code >= 100) && ($result->code < 600);