Find the step that stalls before your site loads
ERR_
What can run out of time
The secure handshake
Once the TCP connection is open, Chrome allows 30 seconds for the TLS handshake. A server that takes the connection and then goes quiet, because whatever handles HTTPS is stuck or overloaded, ends in this error.
The whole connection step
Chrome caps connecting at four minutes, trying every address the name resolves to along the way. A hostname with several addresses that each go unanswered can use up all of it.
A connection that stopped responding
When an open connection stops acknowledging data, the operating system eventually gives up on it. On macOS, Linux and Android it reports a timeout, which Chrome shows as ERR_
TIMED_ OUT; Windows can report the same failure as ERR_ CONNECTION_ ABORTED. A server machine that froze or dropped off its network partway through a page load causes it. A path that loses large packets
If a link on the way can't carry full-size packets and a firewall blocks the message that would say so, small packets get through and large ones vanish. The connection opens, then stalls when the server sends its certificate or a big response.
Software inspecting the traffic
Antivirus, a VPN or a proxy on the visitor's computer that intercepts HTTPS can hold the handshake up on that one machine. Chrome's error page for this code suggests checking the firewall and proxy settings.
Chromium sets the 30-second TLS limit in ssl_
Watch each step of the connection
# Print each step curl completes; a stall is the last step before "timed out"
curl -sv -o /dev/null --max-time 60 https://yoursite.com/ 2>&1 \
| grep -iE 'trying|connected to|established|tls handshake|ssl connection|timed out'
# Watch the TLS handshake on its own; a certificate printout means it got that far
openssl s_client -connect yoursite.com:443 -servername yoursite.com </dev/null
Read where curl stops
If the output shows a
Client helloline, then nothing untiltimed out, the server accepted the connection and never answered the handshake. That's the stall Chrome reports as ERR_TIMED_ OUT after 30 seconds. If it never gets past Trying, the connection itself didn't open, and the guide to timed-out connections, linked below, covers that case. A line reading SSL connection using, or Established connection on newer curl, means the handshake finished, so look later in the request. The exact wording varies with your curl version and its TLS library.openssl prints the server's certificate once the handshake reaches it. If it connects and then sits silent, the HTTPS side of the server isn't replying; if it works from one network and stalls on another, compare the paths. curl's manual explains
-vand--max-time, and OpenSSL's s_client manual covers-servername.
How to fix a stalled connection step
- Find the step that hangsRun the curl command from two networks. A stall at the handshake on both points at your server; a stall on one network only points at that network or at software on that computer.
- Check whatever handles HTTPS under loadThe operating system completes the TCP handshake and holds the connection until the server program accepts it, so a busy server can look connected while its HTTPS layer never replies. Check CPU, memory and open connections on the web server, load balancer or proxy that terminates HTTPS.
- Let path MTU messages throughIf small requests work but the handshake stalls when the server sends its certificate, allow ICMP fragmentation needed messages, and their IPv6 equivalent, through your firewalls. Blocking all ICMP hides the signal that tells the server to send smaller packets.
- Restart what's stuck, then find out whyA hung TLS process or proxy recovers when restarted, but the stall returns if load or a leak caused it. Watch its memory and connection counts over the following days.
Frequently asked questions
How is this different from a connection timeout?
ERR_
Can a slow internet connection cause it?
Yes. Chrome's error guide gives a slow connection or a busy page as the reasons for both timeout errors. If the site loads from another network, or other visitors reach it fine, the slow connection is the likelier cause.
Why does a port check say the server is up?
A port check only opens the TCP connection, and the operating system completes that for the server even while the server program is too busy to respond. The stall comes after, during the handshake, which is the step a port check never tries. Test with a full HTTPS request, as the curl command above does.
How do I catch a stall that comes and goes?
A handshake that stalls only at busy times can look fine whenever you test it yourself, so it helps to have something request the page on a schedule. SiteCMD requests your home page every few minutes once you add the site, and it emails you when the site goes down and again once it recovers.
Look into related timeouts
- Website reliabilityHear about it when your site goes down, not days later from a customer.
- Connection timed outFind what's swallowing connection requests to your server, from a silent firewall to an address nobody answers on.
- 504 Gateway TimeoutFind the request or server that's too slow for your proxy's timeout, then speed it up or move the work out of the request.
- Is my website down?Tell your own connection apart from a real outage, then trace the error to its cause.