X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Ftest-hs-rd.php;h=bd4667e5861f5c7e710e6113a85d5b90dd783ba0;hb=b5a535adf6a1dbcee2c1046d451a99f230aace80;hp=bfa7544c6424444068ee1d009816aeb46bb968e2;hpb=08d4ed7dda698da0d092bbd8a31c15bd2c447927;p=xynt.git diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index bfa7544..bd4667e 100644 --- a/web/test-hs-rd.php +++ b/web/test-hs-rd.php @@ -1,10 +1,15 @@ + + + + -if (http_streaming != 'ready') { - http_streaming.keepalive(); -} -", $i, $i); - } - else { + + $to = rand(10,20); + for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) { + // if ($i == 0) + // sleep(1); + + if ($i == $st+8) { // exit(); sleep(30); } - if ($i == 0) + printf("", $i, ($first ? "
" : ""), $i); + + if ($first) printf("", $s); mop_flush(); usleep(1000000); @@ -39,7 +50,4 @@ if (http_streaming != 'ready') { } main(); ?> - - - \ No newline at end of file