VVX phones take a long time to boot when running firmware greater than 5.4.3.1014. It takes around 10 minutes or so for it to boot. If I take the exact same config and boot over http, then it boots in the normal 90 seconds. Something broke after 5.4.3.1014. I've tried all the firmware up through 5.5.1.12442, and they all boot slowly over https. Version 5.4.3.1014 and older work perfectly fine with https, and boot in around 90 seconds.
What seems to be happening from the webserver logs is that it takes 6 seconds for the phone to initialize the TLS connection with the webserver for each file it downloads. That's why it takes forever to boot. Normally it blasts through all the files in under 10 seconds, but with a 6 second delay per file, it takes 10 minutes to boot.
I ran a wireshark trace, and it shows the webserver waiting for the rest of the packets from the phone during the TLS connection setup.
I turned on debugging for CURL on the phone, and here is the snippet showing the delay during the initial curl negotiation:
0301221142|curl |3|00|successfully set certificate verify locations: 0301221142|curl |3|00| CAfile: /ffs0/ca1.crt CApath: none 0301221142|curl |3|00|SSLv3, TLS handshake, Client hello (1): 0301221142|curl |3|00|SSLv3, TLS handshake, Server hello (2): 0301221142|curl |3|00|SSLv3, TLS handshake, CERT (11): 0301221142|curl |3|00|SSLv3, TLS handshake, Server key exchange (12): 0301221142|curl |3|00|SSLv3, TLS handshake, Server finished (14): 0301221148|curl |3|00|SSLv3, TLS handshake, Client key exchange (16): 0301221148|curl |3|00|SSLv3, TLS change cipher, Client hello (1): 0301221148|curl |3|00|SSLv3, TLS handshake, Finished (20): 0301221148|curl |3|00|SSLv3, TLS handshake, Unknown (4): 0301221148|curl |3|00|SSLv3, TLS change cipher, Client hello (1): 0301221148|curl |3|00|SSLv3, TLS handshake, Finished (20):
You can see the 6 second delay from when the phone finishes the server key exchange and it starts the client key exchange. Offhand, this looks like a bug in curl on the phone.
Does anyone else experience the same boot slowness with https?