From 66ce879682b8bc8535383f89ad719b1e1d802a11 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 12 Oct 2014 23:18:14 +0200 Subject: [PATCH] webbuild.html, autobuilds.html: restrict xmlhttp to fix too many sockets pending in chromium bug --- webbuild/html/autobuilds.html | 1 + webbuild/html/webbuild.html | 1 + 2 files changed, 2 insertions(+) diff --git a/webbuild/html/autobuilds.html b/webbuild/html/autobuilds.html index b356aa6..7c9d780 100644 --- a/webbuild/html/autobuilds.html +++ b/webbuild/html/autobuilds.html @@ -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) diff --git a/webbuild/html/webbuild.html b/webbuild/html/webbuild.html index a14c20b..ec21f2a 100644 --- a/webbuild/html/webbuild.html +++ b/webbuild/html/webbuild.html @@ -92,6 +92,7 @@ function editorChanged() { function ajax_getvalues(request,confirm) { var url = "/cgi-bin/webbuild" + var xmlhttp; if (!user) { user=getCookie("webbuild-user");