WebPagetest Forums
strange gap results - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: strange gap results (/showthread.php?tid=14187)

strange gap results - dalore - 02-01-2016 06:25 PM

We are seeing some very strange results with WPT. For example http://www.webpagetest.org/result/160201_T2_BFC/1/details/

It will connect, get the html page, process google analytics and then make no connection for 40+ seconds and then start retrieving the assets.

I noticed the other thread mentioning ssl gaps but that shouldn't be the case here. It's already connected and reuses the same connection to download the assets since it's the same cert, ip but just a different server name.

RE: strange gap results - pmeenan - 02-01-2016 10:54 PM

Looking at the bandwidth line below the waterfall, it looks like something BIG is downloading using a consistent 2.5Mbps or so during the gap. Whatever it is isn't showing up in the waterfall though so it's something that the WPT code doesn't know how to decode (or isn't reported by dev tools).

Do you see it from other locations or with different pages on the same location?

RE: strange gap results - dalore - 02-01-2016 11:59 PM

Tried another location (Manchester this time, previously was London), and also a different url and got similar results: http://www.webpagetest.org/result/160201_DB_N68/

Doing a test with tcpdump turned on:

- it seems to fetch dns records for the ocsp.digicert.com even though the oscp should be stapled (as confirmed with ssllabs)
- The client (wpt) seems to keep sending a RST/ACK and making new connections over and over (which is probably where the 2.5Mbps downloads comes from). Until something (?) and then it decides to accept the certificate?

RE: strange gap results - dalore - 02-02-2016 01:35 AM

wireshark of one of the connections during the strange period

[Image: 21d544da-c8f3-11e5-8b2b-785118e60092.png]

Background of our setup:

We have 3 hostnames now all the same ip (although some dns resolves are still propagating it seems to some of the WPT hosts, but the capture had the right ip), http://www.pitchup.com, m.pitchup.com and media.pitchup.co.uk

Configured using nginx, spdy, ocsp stapling, ev certs. We recently got one cert with the 3 hostnames all as alternative names. We did this to have a media domain but not to incur an extra ssl connect when using it. If the ip address and the certificate is the same the client doesn't need to create make a new ssl connection.

Now we aren't seeing the issue when accessing pages on http://www.pitchup.com but we see the issue when accessing m.pitchup.com. The issue arises when it tries to connect to media.pitchup.co.uk.

Not seeing this locally but that doesn't prove it isn't happening.

RE: strange gap results - pmeenan - 02-06-2016 08:11 AM

It's worth noting that OCSP stapling will only work for the leaf certificate. Any intermediaries will still need to be checked if they aren't already trusted roots.

RE: strange gap results - unixy - 02-09-2016 07:05 AM

Does disabling pagespeed help improve test readability?

RE: strange gap results - pmeenan - 02-11-2016 02:02 AM

mod_pagespeed on the server? Not sure I understand but no flavor of PageSpeed I can think of should have a negative impact on reliability or consistency. Only possible interaction I can think of is for new content mod_pagespeed may take a few page loads before the server has optimized all of the resources.

RE: strange gap results - unixy - 02-17-2016 12:08 AM

In some instances, a misconfigured mod_pagespeed can go bezerk in a loop. So just a hunch after seeing such high processing of pagespeed happening in the WPT details of the site.

RE: strange gap results - dalore - 02-17-2016 12:09 AM

tried without mod_pagespeed (ModPagespeed=off) and got the same results. Looking at the tcpdump seems to be the ssl negotiation keeps retrying until it succeeds