? .buildpath
? .project
? .settings
? 1002538.patch
? bootstrap.patch
? dump.sql
? sites/all/modules/devel
? sites/default/files
? sites/default/settings.php
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.1283
diff -u -p -r1.1283 common.inc
--- includes/common.inc	3 Jan 2011 06:51:00 -0000	1.1283
+++ includes/common.inc	6 Jan 2011 11:54:48 -0000
@@ -826,8 +826,9 @@ function drupal_http_request($url, array
   if (!$fp) {
     // When a network error occurs, we use a negative number so it does not
     // clash with the HTTP status codes.
-    $result->code = -$errno;
-    $result->error = trim($errstr) ? trim($errstr) : t('Error opening socket @socket', array('@socket' => $socket));
+    $errstr = trim($errstr);
+    $result->code = (!empty($errno)) ? -$errno : -1;
+    $result->error = (!empty($errstr)) ? $errstr : t('Error opening socket @socket', array('@socket' => $socket));
 
     // Mark that this request failed. This will trigger a check of the web
     // server's ability to make outgoing HTTP requests the next time that
