X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Ftest-hs-rd.php;h=78baf48291fc6e21795244bb281f8b3a70f1a12a;hb=5ba9cf2d51aeb6ca0d9687c908ccb10496e843ca;hp=bfa7544c6424444068ee1d009816aeb46bb968e2;hpb=08d4ed7dda698da0d092bbd8a31c15bd2c447927;p=xynt.git diff --git a/web/test-hs-rd.php b/web/test-hs-rd.php index bfa7544..78baf48 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, $i); + + if ($first) printf("", $s); mop_flush(); usleep(1000000); @@ -39,7 +56,4 @@ if (http_streaming != 'ready') { } main(); ?> - - - \ No newline at end of file