},
ctx_new_getchar: function(idx) { /* public */
+ return (this.ctx_new[idx]);
},
ctx_old_len_is_set: function () { /* public */
ifra: null,
destroy: function () { /* public */
- if (this.ifra != null) {
- this.doc.body.removeChild(this.ifra);
- delete this.ifra;
- this.ifra = null;
+ try {
+ if (this.ifra != null) {
+ // FIXME: with opera on win this remove child crash js so is
+ // commented AND NOWWW ????
+ this.doc.body.removeChild(this.ifra);
+ delete this.ifra;
+ this.ifra = null;
+ }
+ } catch (b) {
+ alert("destroy exception catched");
}
},
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,
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");