window.onload = function () { if (http_streaming != "ready") http_streaming.reload(); };
</script>
+</head>
+<body onabort = "console.log('rd abort');" onunload = "console.log('rd unload');" onerror = "console.log('rd error');" onkeypress = "console.log('rd keypress');">
+</body>
<?php
function mop_flush()
{
function main()
{
+ $fp = fopen("/tmp/test-hs-rd.log", "a");
+ fwrite($fp, "START\n");
+ fclose($fp);
+
$s = "";
for ($i = 0 ; $i < 4096 ; $i++) {
$s .= rand(65,90);
// if ($i == 0)
// sleep(1);
- if ($i != 8) {
- printf("<script id='hs%d' type='text/javascript'>
-push(\"$('cont').innerHTML = '%d';\");
-</script>", $i, $i);
- }
- else {
+ if ($i == 8) {
// exit();
- // sleep(30);
+ sleep(30);
}
+ printf("<script id='hs%d' type='text/javascript'>
+push(\"$('cont').innerHTML += '%s %d';\");
+</script>", $i, ($i == 0 ? "<br/>" : ""), $i);
+
if ($i == 0)
printf("<!-- %s -->", $s);
mop_flush();
}
main();
?>
-</head>
-<body>
-</body>
</html>
\ No newline at end of file