Node HandbookNODE HANDBOOK
Transport

v2rayN: TLS handshake timeout

The socket opened, so the host is reachable and the port is listening. What did not happen is the TLS negotiation. Since no certificate was ever returned, nothing about trust or expiry has been tested yet.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

Where the handshake sits in the sequence

A TLS connection completes in stages, and each failure point has a distinct message:

StageFailure messageWhat it proves
TCP connectconnection refused / i/o timeoutNothing about TLS
ClientHello sent, no replyhandshake timeoutThe port is open; the peer did not answer
Certificate received, chain invalidx509 errorsThe peer answered and presented a certificate
Handshake complete, protocol rejectedprotocol or auth errorsTLS worked entirely

A handshake timeout is the second row. It is strictly earlier than any certificate check, which is why advice about certificates, trust stores, and verification flags cannot help here — those are evaluated on a certificate that never arrived.

This distinction is worth holding onto, because the two errors are frequently reported together as "TLS problem" and fixed with the wrong remedy. Turning off verification on a handshake timeout changes nothing at all.

SNI filtering

The server name is sent in the clear in the first message of the handshake. A middlebox that inspects connections can therefore read it and choose to drop the connection before any response is generated. The client sees silence, which the transport reports as a timeout.

The signature is specific: the same host and port work from another network, or work when the server name is left unset. Testing that second case is the fastest confirmation:

openssl s_client -connect <host>:<port> < /dev/null
openssl s_client -connect <host>:<port> -servername <host> < /dev/null

If the first completes and the second hangs, the difference is the name in the hello, and filtering is the cause. This is not a node fault, and no client setting on your machine will route around it — the remedy is a different host, a different port, or a transport that does not expose the name.

The port is not serving TLS

The opposite case, and equally common. The port accepts TCP connections but expects a different protocol. A plaintext proxy protocol, a WebSocket upgrade, or an HTTP server on a port the client is treating as TLS all produce a hang rather than an error, because neither side can make sense of the other and both wait.

The tell is that the connection opens instantly and then stalls with no bytes at all. A server that speaks TLS always sends something back, even when rejecting. Total silence points at a protocol mismatch more than at filtering.

Check the node's security field against the port the provider documents. Many providers serve one port for TLS-wrapped transports and another for plaintext, and a profile generated by a converter can assign the wrong pairing.

Load and connection limits

A server that has exhausted its connection table or its file descriptors accepts the TCP connection — the kernel completes the handshake — and then never services it. From outside this is indistinguishable from filtering, and it has a distinctive pattern: it fails under load and succeeds at other times, and it affects all users of that node rather than one network.

Comparing with the provider's status page or with another node on the same server separates this from a path problem. If every node on one host fails simultaneously, the host is the common factor.

Large packets being dropped

A path with a reduced maximum transmission unit can complete a TCP handshake and then lose the larger packets the TLS handshake needs. The symptom is a stall after the connection opens, sometimes progressing slowly rather than failing outright.

This is more common on tunneled or mobile links than on a direct connection, and it appears as a handshake that works sometimes. Lowering the interface's maximum segment size is the classic remedy, but confirm the cause first: if the same node works from another network with the same client, the path is implicated.

What to record

  • The openssl s_client result with and without a server name. The contrast identifies filtering.
  • Whether any bytes came back at all. Silence points at protocol mismatch; a partial response points elsewhere.
  • Whether the failure is time-dependent. A node that fails under load and works otherwise is a capacity problem.
  • Whether other nodes on the same host fail at the same moment. That makes the host, not the path, the common factor.

Those four distinguish the causes without touching a verification setting that would weaken the connection for no benefit.

Frequently asked

Is this a certificate problem?

No. A certificate problem requires a certificate to have been received and rejected. A handshake timeout happens before any certificate is sent, so trust, expiry, and chain validity have not been evaluated.

Will disabling certificate verification help?

No, and it removes a protection for nothing. The failure is earlier in the sequence than verification. If turning it off appears to help, something else changed at the same time.

Why does the same node work on my phone?

Different network, so a different path. That is the signature of SNI-based filtering or a path maximum transmission unit problem rather than of a node fault.

Can a slow server cause a timeout?

Yes, if it accepts connections faster than it can service them. That produces failures under load and successes otherwise, and it affects every user of the node rather than one network.

Does the transport type matter here?

Yes. A client expecting TLS on a port that serves a plaintext transport hangs rather than erroring, because both sides wait for bytes the other will not send. Check the security field against the port the provider documents.