Bug in Max-Connection test?

21 views
Skip to first unread message

macstan

unread,
Nov 9, 2011, 1:44:07 PM11/9/11
to Browserscope
Hi All:

It seems to me that there is a problem with the Max-Connections test.
I tried it on both desktop Chrome and FF recently. This is what I
find:

You can see in the below JS code excerpt, it is GETting 2 images from
each of the five different domains but then it requests same images
from same domains again. The browser recognizes this and just loads
the images directly from its own cache. On desktop Chrome and FF, I
don’t even see conditional GETs for these images because the server is
setting max-age and expire tags well ahead in future. In both Chrome/
FF, I see a total of 10 HTTP GETs requested by the browser - that is 2
images x five domains. I don't see any subsequent GET request.

I think it is either that the code is buggy – or perhaps the server
config is screwed up [it should at least set no-store tag and hope the
browser would obey].


// Done w/ Javascript to prevent bots from hitting our servers hard.
var imgC = document.getElementById('img-c');
var img = document.createElement('img');
for (var i = 1; i <= 30; i++) {
var addr = (i % 5) + 1; // aka number of resource-cgi backends -1
for (var j = 1; j <=2; j++) {
var clone = img.cloneNode(true);
clone.id = 'img' + i + '-' + j;
clone.onload = countImage;
clone.src = 'http://' + addr + '.cgi.browserscope.net/cgi-bin/
resource.cgi?type=gif&' +
'sleep=6&n=' + j + '&t=1320862013';
imgC.appendChild(clone);
}
}

Lindsey Simon

unread,
Nov 9, 2011, 4:50:12 PM11/9/11
to browse...@googlegroups.com
I think there's definitely a few issues going on with this test. I'm trying to migrate Browserscope to the High Replication datastore so we can use python 2.7 and concurrent connections to make a better test for this one in particular.
Thanks for the email though.


--
You received this message because you are subscribed to the Google Groups "Browserscope" group.
To post to this group, send email to browse...@googlegroups.com.
To unsubscribe from this group, send email to browserscope...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/browserscope?hl=en.


Reply all
Reply to author
Forward
0 new messages