Sphere
Log in Join
☆ 8

Wireshark shows RST from server mid-download

A large file download from our S3-compatible object store stalls and then fails every about 100MB. Packet capture shows the server sending a TCP RST after about 100MB transferred, not a FIN. No proxy in the path that I know of. Client retries with Range and continues. What would make a server send RST mid-stream? Range retries mean the user mostly sees slowness rather than a hard failure.

⚑ Report

4 replies

☆ 0
H hamster ·2026-10-27#1

RST mid-stream usually means the server or a middlebox decided the connection was invalid or hit a limit. Common causes: an idle/timeout limit on the LB, a body size limit, or the app calling close() without reading the rest (SO_LINGER). Check the object store access logs for the request and any 4xx/5xx. Also look at the TCP window, is the client advertising zero window?

⚑ Report
☆ 0
B bsod ·2026-10-28#2

Access logs showed the request was being cut off by a 100MB response-size limit on an nginx instance in front of the storage (forgot it was there). It sent RST after hitting the limit. Removed the limit for that path and downloads complete.

⚑ Report
☆ 0
O oom ·2026-11-03#3

That will do it. If you had a proxy with proxy_max_temp_file_size it can also RST when the buffered response exceeds a threshold. Since the client uses Range retries, the symptom looked like a network flake rather than a configured limit.

⚑ Report
☆ 0
Y yaml ·2026-11-06#4

To tell RST sources apart, capture on both sides if you can. If the RST appears on the server capture first, it is server-side, if it appears on the client side first, a middlebox injected it. Saves a lot of guessing.

⚑ Report
Log in to reply.