Code

Added queue entry start / stop
[gosa.git] / gosa-core / include / class_socketClient.inc
index 7f571a31e89f69683fca82566f2a72d90231bef5..72230451b4fda08f689fe71c557afe26680fde03 100644 (file)
@@ -124,9 +124,9 @@ class Socket_Client
 
                        /* Read data if necessary */
                        while($num && get_MicroTimeDiff($start,microtime()) < $this->timeout){
-                               $str.= fread($this->handle, 100);
+                               $str.= fread($this->handle, 1024000);
                                $read = array("0"=>$this->handle);      
-                               $num = @stream_select($read,$write,$accept,floor($this->timeout), ceil($this->timeout*100000));
+                               $num = stream_select($read,$write,$accept,0,200);
                        }
                        $this->bytes_read = strlen($str);
                        $this->b_data_send = FALSE;