Find the step that stalls before your site loads

ERR_TIMED_OUT is Chrome's general timeout: a step Chrome was waiting on ran past its limit, and the page says the site took too long to respond. Unlike ERR_CONNECTION_TIMED_OUT, it doesn't come from the operating system's attempt to open the connection. On an HTTPS site, one cause is a server that accepts the connection and then never finishes the secure handshake, which Chrome allows 30 seconds.

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_connect_job.cc and the four-minute limit in tcp_connect_job.cc, and connect_job.cc reports ERR_TIMED_OUT when either runs out. net_errors_posix.cc maps a timeout on an open socket to the same code. On Windows, net_errors_win.cc maps WSAECONNABORTED, which Microsoft's Winsock error list puts down to a possible data transmission timeout, to ERR_CONNECTION_ABORTED, the code net_error_list.h gives to sent data that was never acknowledged. The listen(2) manual describes connections that are fully established while they wait for the server program to accept them. RFC 2923 describes the path MTU black hole, where pings work but the connection times out on the first large packet.

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 hello line, then nothing until timed 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 -v and --max-time, and OpenSSL's s_client manual covers -servername.

How to fix a stalled connection step

  1. 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.
  2. 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.
  3. 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.
  4. 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_CONNECTION_TIMED_OUT means the server never accepted the connection, and it comes from the operating system's attempt to connect. ERR_TIMED_OUT comes from Chrome's own timers, or from a connection that stopped responding after it opened. Chromium maps the two separately in socket_posix.cc and net_errors_posix.cc.

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.