includes/http.php
changeset 1034 15fa1b4e730a
parent 952 d52dfa1f08da
child 1081 745200a9cc2a
--- a/includes/http.php	Sun Jul 05 00:57:02 2009 -0400
+++ b/includes/http.php	Sun Jul 05 00:57:53 2009 -0400
@@ -326,9 +326,9 @@
   function _sock_open(&$connection)
   {
     // Open connection
-    $connection = @fsockopen($this->host, $this->port);
+    $connection = fsockopen($this->host, $this->port, $errno, $errstr);
     if ( !$connection )
-      throw new Exception(__METHOD__ . ': Could not make connection');
+      throw new Exception(__METHOD__ . ": Could not make connection"); // to {$this->host}:{$this->port}: error $errno: $errstr");
     
     // 1 = socket open
     $this->state = 1;