webbuild.html, autobuilds.html: restrict xmlhttp to fix too many sockets pending in chromium bug

This commit is contained in:
Silvan Calarco 2014-10-12 23:18:14 +02:00
parent 3b15ee14b7
commit 66ce879682
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ var reloadtime = 0;
function ajax_getvalues() {
var url = window.location.protocol+"//"+window.location.hostname+"/cgi-bin/autodist?FORMAT=xml&"+window.location.href.replace(/.*\?/,"");
var xmlhttp;
if (window.XMLHttpRequest)
xmlhttp = new XMLHttpRequest();
else if (window.ActiveXObject)

View File

@ -92,6 +92,7 @@ function editorChanged() {
function ajax_getvalues(request,confirm) {
var url = "/cgi-bin/webbuild"
var xmlhttp;
if (!user) {
user=getCookie("webbuild-user");