projects
/
xynt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add session management and step passed to the streamer
[xynt.git]
/
web
/
test-hs-rd.php
diff --git
a/web/test-hs-rd.php
b/web/test-hs-rd.php
index
4f13f24
..
d9a0867
100644
(file)
--- a/
web/test-hs-rd.php
+++ b/
web/test-hs-rd.php
@@
-4,7
+4,6
@@
<script type="text/javascript" src="xynt/xynt-http-streaming-ifra.js"></script>
<script type="text/javascript">
var http_streaming = "ready";
<script type="text/javascript" src="xynt/xynt-http-streaming-ifra.js"></script>
<script type="text/javascript">
var http_streaming = "ready";
-var ctx_new = "";
window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); };
</script>
window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); };
</script>
@@
-20,24
+19,28
@@
function mop_flush()
function main()
{
function main()
{
+ GLOBAL $st;
+
$s = "";
for ($i = 0 ; $i < 4096 ; $i++) {
$s .= rand(65,90);
}
$s = "";
for ($i = 0 ; $i < 4096 ; $i++) {
$s .= rand(65,90);
}
- for ($i = 0 ; $i < 15 ; $i++) {
+
+ $to = rand(10,20);
+ for ($first = true, $i = $st+1 ; $i < $st+$to ; $i++, $first = false) {
// if ($i == 0)
// sleep(1);
if ($i != 8 || true) {
printf("<script id='hs%d' type='text/javascript'>
// if ($i == 0)
// sleep(1);
if ($i != 8 || true) {
printf("<script id='hs%d' type='text/javascript'>
-push(\"$('cont').innerHTML += '%s %d';\");
-</script>", $i, ($
i == 0 ? "<br/>" : "")
, $i);
+push(\"$('cont').innerHTML += '%s %d';
gst.st = %d;
\");
+</script>", $i, ($
first ? "<br/>" : ""), $i
, $i);
}
else {
// exit();
// sleep(30);
}
}
else {
// exit();
// sleep(30);
}
- if ($
i == 0
)
+ if ($
first
)
printf("<!-- %s -->", $s);
mop_flush();
usleep(1000000);
printf("<!-- %s -->", $s);
mop_flush();
usleep(1000000);