Tweak magic number to fix bad behavior in Firefox, which was caused by an earlier fix to bad behavior in Chromium.
Browsers are crap.
This commit is contained in:
parent
f8e1d2fd09
commit
4a5ab9b1e7
4 changed files with 13 additions and 6 deletions
|
@ -16,7 +16,11 @@ function longpoll_div(url, divid, cont, fail) {
|
|||
},
|
||||
'error': function(jqxhr, msg, e) {
|
||||
connfails=connfails+1;
|
||||
if (connfails > 3) {
|
||||
// It's normal to get 1 failure per longpolling
|
||||
// element when navigating away from a page.
|
||||
// So 12 allows up to 4 longpolling elements per
|
||||
// page.
|
||||
if (connfails > 12) {
|
||||
fail();
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue