Sphere
Log in Join
☆ 2

tcpdump shows TLS retransmissions on the handshake

Intermittent slowness calling an external HTTPS API from our servers. tcpdump on the client shows the TLS ClientHello going out, then a about 1s gap, then a retransmission of the ClientHello, then the ServerHello. No packet loss reported by the provider. MTU 1500, no fragmentation seen. Happens maybe 1 in 20 requests. Ideas? A 1 in 20 failure rate makes it really hard to reproduce while someone is watching.

⚑ Report

4 replies

☆ 0
O onemore ·2026-10-28#1

A retransmitted ClientHello usually means the server response got lost, or the server is silently dropping the first attempt. Check if the ClientHello is large (many cipher suites, SNI, ALPN can push it over one segment). Some firewalls drop TCP segments with certain options on the first packet. Capture on the server side too if you can.

⚑ Report
☆ 0
2 2am ·2026-10-31#2

ClientHello was about 1400 bytes. Turned out a middlebox was dropping it because it exceeded a 1300-byte limit on that path. Reduced the cipher suite list in our TLS config and it got smaller and stopped getting dropped. Ugly but effective.

⚑ Report
☆ 0
D darkmode ·2026-11-04#3

You can also enable TCP MSS clamping on the path (iptables TCPMSS --clamp-mss-to-pmtu) so segments stay small enough. But shrinking the ClientHello is a reasonable mitigation when you cannot touch the network gear. Check tcpdump -s0 to capture full packets next time.

⚑ Report
☆ 0
N npc ·2026-11-08#4

If you see the same with HTTP/2 many headers, look at HPACK and initial window sizes too. We had a similar first-request-slow issue that turned out to be a 1s idle timeout on the load balancer waiting for the full header block.

⚑ Report
Log in to reply.