Skip to content
‹ 30-Day Drill

W3: The Connection Opens but the Page Never Loads

Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.

W3: The Connection Opens but the Page Never Loads

CategorySecure connections

Scenario

Interviewer Users' devices connect to your service successfully at the network level, but the app shows them nothing. Where would you look?

In plain words

Two computers have shaken hands and can exchange data. Even so, nothing useful reaches the user. The question asks what has to happen after the connection opens and before a page appears.

The interviewer wants you to see that the network path is proven to work, so the fault must be in a later step, and to name those steps.

Words you need

WordWhat it means
TCPThe standard way two computers open a reliable connection before sending anything.
TLSThe step that makes a connection private and proves the server is who it says it is. It is the S in HTTPS.
CertificateA server's identity document. It names the website and has an expiry date.
HandshakeThe opening exchange in which the two sides agree how to talk.
BackendA server behind the load balancer that does the real work of answering.

Key Insight

An open connection proves that the route works. It proves nothing about what is said afterwards. Think of a phone call that connects: the line is fine, but the two people may still share no language.

So leave the network alone and look at the steps that come next: the secure handshake, then the request itself.

Explanation and Investigation

1. The secure handshake fails

This is the most common cause. The certificate has expired, or the wrong one was installed, or the two sides cannot agree on a way to encrypt. The connection is open, no data follows, and the user sees a spinner or a security warning.

openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null
# prints the certificate the server presents and whether it could be verified

To read the dates alone, pass the certificate to a second command:

openssl s_client -connect app.example.com:443 -servername app.example.com </dev/null 2>/dev/null | openssl x509 -noout -dates

2. The load balancer's secure settings are wrong

The load balancer usually holds the certificate. A bad certificate or a too-strict setting there breaks every user at once, while every server behind it reports healthy.

Servers inside the company often check each other's certificates too. If one of those expires, the outside looks fine and requests fail inside.

3. The handshake works but the request fails

curl -sv https://app.example.com/ -o /dev/null     # shows the handshake, then the status code

A status code of 502 or 503 means the load balancer could not get an answer from a backend. Then the question becomes why the backends are not answering.

4. Ask what changed

Look for a certificate renewal, a load balancer change or a release in the last day. Certificates also expire on a date nobody was watching.

Model Answer

Interview-ready answer The connection opens, so the network path is fine and the fault is in a later step. I would test the secure handshake with openssl s_client and read the certificate's dates and name. If the handshake fails, I would check the certificate and settings on the load balancer. If it works, I would make a request with curl and read the status code, which tells me whether the backends are answering. I would also check for a recent certificate or load balancer change.