centralized get curtime var
[brisk.git] / web / spush / brisk-spush.php
index 40eb54e..3e3f601 100755 (executable)
  * Suite 330, Boston, MA 02111-1307, USA.
  *
  * TODO
- *   problema con getpeer (HOSTADDR)
+ *   index_wr.php::chat
+ *   index_wr.php::reload
+ *   index_wr.php::exit
+ *
  *   setcookie (for tables only)
  *   keepalive
  *   chunked 
- *   index_rd.php porting
- *   index.php auth part
- *   generic var management from internet
+ *   BUG - after restart index_rd.php receive from prev clients a lot of req
+ *   DONE/FROZEN - problema con getpeer (HOSTADDR)
+ *
+ *   DONE - index_rd.php porting
+ *   DONE - generic var management from internet
+ *   DONE - index.php auth part
  */
 
 $G_base = "../";
@@ -216,7 +222,9 @@ function main()
     stream_set_blocking($list, $blocking_mode); # Set the stream to non-blocking
 
     while ($main_loop) {
-        echo "IN LOOP\n";
+        $curtime = time();
+        printf("IN LOOP: Current opened: %d\n", count($socks));
+
         /* Prepare the read array */
         if ($shutdown) 
             $read   = array_merge(array("$in" => $in), $socks);