projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
select timeout increased
[brisk.git]
/
web
/
xynt-http-streaming.js
diff --git
a/web/xynt-http-streaming.js
b/web/xynt-http-streaming.js
index
f4731ce
..
81f54cf
100644
(file)
--- a/
web/xynt-http-streaming.js
+++ b/
web/xynt-http-streaming.js
@@
-38,7
+38,9
@@
http_streaming.prototype = {
keepalive_new: -1,
keepalives_equal: 0,
keepalives_eq_max: 6,
keepalive_new: -1,
keepalives_equal: 0,
keepalives_eq_max: 6,
- watchdog_timeout: 100,
+ /* NOTE: right watch_timeout value to 100, for devel reasons use 1000 or more */
+ // FIXME watchdog_timeout: 200,
+ watchdog_timeout: 200,
watchdog_ct: 0,
watchdog_checktm: 20,
watchable: false,
watchdog_ct: 0,
watchdog_checktm: 20,
watchable: false,
@@
-68,6
+70,7
@@
http_streaming.prototype = {
// this.log(this.ifra);
this.ifra.contentWindow.location.href = this.page;
// this.log(this.ifra);
this.ifra.contentWindow.location.href = this.page;
+ // this.ifra.src = this.page;
this.watchdog_ct = 0;
if (!this.the_end) {
this.watchdog_hdl = setTimeout(function(obj) { obj.log("tout1"); obj.watchdog(); }, 0, this);
this.watchdog_ct = 0;
if (!this.the_end) {
this.watchdog_hdl = setTimeout(function(obj) { obj.log("tout1"); obj.watchdog(); }, 0, this);
@@
-91,7
+94,7
@@
http_streaming.prototype = {
if (this.sandbox != null) {
// from old: var zug = "POLL sess = "+sess+" stat = "+stat+" subst = "+subst+" step = "+this.gst.st+" step_loc = "+this.gst.st_loc+" step_loc_new = "+this.gst.st_loc_new+" STOP: "+this.stopped;
if (this.sandbox != null) {
// from old: var zug = "POLL sess = "+sess+" stat = "+stat+" subst = "+subst+" step = "+this.gst.st+" step_loc = "+this.gst.st_loc+" step_loc_new = "+this.gst.st_loc_new+" STOP: "+this.stopped;
- var zug = "WATCHDOG step = "+this.gst.st+" step_loc = "+this.gst.st_loc+" step_loc_new = "+this.gst.st_loc_new;
+ var zug = "WATCHDOG
sess = ["+this.sess+"]
step = "+this.gst.st+" step_loc = "+this.gst.st_loc+" step_loc_new = "+this.gst.st_loc_new;
if (zug != this.sandbox.innerHTML)
this.sandbox.innerHTML = zug;
}
if (zug != this.sandbox.innerHTML)
this.sandbox.innerHTML = zug;
}
@@
-101,8
+104,14
@@
http_streaming.prototype = {
if ( (this.watchdog_ct % this.watchdog_checktm) == 0 || !this.watchable) {
if (!this.watchable) {
do {
if ( (this.watchdog_ct % this.watchdog_checktm) == 0 || !this.watchable) {
if (!this.watchable) {
do {
- if (typeof(this.ifra.contentWindow.http_streaming) == 'undefined')
- break;
+ try{
+ if (typeof(this.ifra.contentWindow.http_streaming) == 'undefined')
+ break;
+ }
+ catch(b) {
+ break;
+ }
+
/*
on IE7 the the window frame scope is cleaned after the href is set, so we wait
for a well know variable value before assign this object value to it (OO is a passion)
/*
on IE7 the the window frame scope is cleaned after the href is set, so we wait
for a well know variable value before assign this object value to it (OO is a passion)
@@
-136,9
+145,14
@@
http_streaming.prototype = {
// alert("do--while begin ["+again+"]");
// CHECK: maybe again here isn't needed
again = 0;
// alert("do--while begin ["+again+"]");
// CHECK: maybe again here isn't needed
again = 0;
- if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined' ||
- typeof(this.ifra.contentWindow.ctx_old_len) == 'undefined')
- break;
+ try {
+ if (typeof(this.ifra.contentWindow.ctx_new) == 'undefined' ||
+ typeof(this.ifra.contentWindow.ctx_old_len) == 'undefined')
+ break;
+ }
+ catch(b) {
+ break;
+ }
ctx_new_len = this.ifra.contentWindow.ctx_new.length;
if (ctx_new_len <= this.ifra.contentWindow.ctx_old_len) {
ctx_new_len = this.ifra.contentWindow.ctx_new.length;
if (ctx_new_len <= this.ifra.contentWindow.ctx_old_len) {
@@
-261,4
+275,4
@@
http_streaming.prototype = {
return (this.console.log(s));
}
}
return (this.console.log(s));
}
}
-}
\ No newline at end of file
+}