mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
* operation: resend an upload that hits a broken pipe on a stale connection A pooled connection the server has closed fails an upload in one of three ways, depending on when the close reaches the client. Two of them, a reset and a closed connection, already get the request resent once with its body rewound. A broken pipe did not. A volume server closes a connection idle for 30 seconds and the client keeps idle ones for 90, so a request that reuses a connection as it turns 30 seconds old races with the close. The forward of a write to a replica makes a single attempt: there the write failed with a 500, and the needle already stored on the primary stayed on that one replica. * seaweed-volume: resend a replica forward that hits a reset on a stale connection The Rust replica forward made one attempt, so a pooled connection the peer closed at its idle timeout failed the write with a broken pipe or a reset, as the Go forward did before. Resend it once on a new connection, as Go's upload_content does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: MapleWhiteZZZ <18653045+MapleWhiteZZZ@users.noreply.github.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>