X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt-streaming.js;h=fe14f249dbbdf5c85df0a3953ae6c774f7d80cc5;hb=087d3262b6c01417dad7b9eb365374fe5a9f2ba1;hp=7e6163891c66cfcfeb61dd1ec20a60af32d70cd0;hpb=a3eaf585e7bfab188caef0eb9c126cfcea96a0ee;p=brisk.git diff --git a/web/xynt-streaming.js b/web/xynt-streaming.js index 7e61638..fe14f24 100644 --- a/web/xynt-streaming.js +++ b/web/xynt-streaming.js @@ -95,6 +95,7 @@ transport_xhr.prototype = { }, ctx_new_getchar: function(idx) { /* public */ + return (this.ctx_new[idx]); }, ctx_old_len_is_set: function () { /* public */ @@ -247,13 +248,13 @@ transport_iframe.prototype = { try { if (this.ifra != null) { // FIXME: with opera on win this remove child crash js so is - // commented - // this.doc.body.removeChild(this.ifra); + // commented AND NOWWW ???? + this.doc.body.removeChild(this.ifra); delete this.ifra; this.ifra = null; } } catch (b) { - alert("catched"); + alert("destroy exception catched"); } }, @@ -365,8 +366,8 @@ xynt_streaming.prototype = { keepalive_new: -1, keepalives_equal: 0, /* NOTE: right watch_timeout value to 100, for devel reasons use 1000 or more */ - /* restart after 3 * 40 * 100 millisec if server ping is missing => 12secs */ - keepalives_eq_max: 3, + /* restart after 4 * 40 * 100 millisec if server ping is missing => 16secs */ + keepalives_eq_max: 4, watchdog_checktm: 40, // FIXME watchdog_timeout: 100, watchdog_timeout: 100, @@ -478,7 +479,7 @@ xynt_streaming.prototype = { this.keepalives_equal = 0; } - if (this.keepalives_equal > this.keepalives_eq_max) { + if (this.keepalives_equal >= this.keepalives_eq_max) { this.log("hs::watchdog: MAX ACHIEVED "+this.keepalives_equal); this.reload(); // alert("watchdog return reload");