# S3 PUT isn't retried after a connection error

**URL:** https://support.stalw.art/t/s3-put-isnt-retried-after-a-connection-error/2221
**Category:** Feature Ideas
**Created:** [November 5, 2026, 7:34am UTC](https://support.stalw.art/t/s3-put-isnt-retried-after-a-connection-error/2221 "2026-11-05T07:34:11Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![dataforge](https://support.stalw.art/letter_avatar_proxy/v4/letter/d/47e85d/32.png) [@dataforge](https://support.stalw.art/u/dataforge)
#### Post date: [November 12, 2026, 9:04pm UTC](https://support.stalw.art/t/s3-put-isnt-retried-after-a-connection-error/2221/2 "2026-11-12T21:04:47Z")

</div>

Follow-up on v1.1.0 (`e7cde9b`). Tested and written with AI help.

Field: during a Vandelay import on November 12, 16 of 1,201 blob uploads failed with HTTP 500. All 16 matched `store.s3-error` PUT `operation timed out` lines across our three nodes (Backblaze B2, us-west-001) within one hour; B2 was healthy when probed afterwards.

Repro on a separate v1.1.0 instance with a mock S3 (`timeout` 5000 ms; stall = mock reads the request, waits 8 s, closes without replying):

| Fault | maxRetries | Requests seen by S3 | Client result |
| --- | --- | --- | --- |
| every PUT stalls | 3 | 1 PUT, nothing in the next 40 s | HTTP 500 after 5.0 s |
| PUT 503 once | 3 | PUT 503, then PUT 200 at +0.38 s, same key and body hash | 200 |
| GET stalls once | 3 | GET stalled, then GET 200 | 200 |
| every GET stalls | 3 | exactly 2 GETs | 500 after 10.3 s |
| PUT stall / PUT 503 / GET stall | 0 | 1 each | 500 each |

```auto
2026-11-12T20:29:25Z TRACE Blob write operation (store.blob-write) ... elapsed = 5001ms, size = 3001
2026-11-12T20:29:25Z ERROR S3 error (store.s3-error) listenerId = "http", ..., reason = "S3 request failed: error sending request for url (http://127.0.0.1:19000/repro/...): operation timed out", causedBy = "crates/store/src/dispatch/blob.rs:175", causedBy = "crates/common/src/storage/blob.rs:247", causedBy = "crates/jmap/src/blob/upload.rs:268"

```

So `maxRetries` covers status retries (503) for every method, but a transport error is retried once and only for GET/HEAD (`crates/s3/src/client.rs:350`, `is_read()` at :417). The docs’ “connection errors are retried once” holds for reads only. Retries are not logged.

For message blobs the key is the content hash (`crates/common/src/storage/blob.rs:214`) and the request body is already buffered (`crates/s3/src/client.rs:139`), so one transport retry for these PUTs looks safe (other blob writers use mutable keys, so I’d scope it). The same gap also loses Sieve redirect/vacation messages silently ([Sieve redirect and vacation messages are lost when the blob write fails: original accepted with 250, no retry, no DSN](https://support.stalw.art/t/2340)).

Could message-blob PUTs get one bounded transport retry, as GET/HEAD do?

---

_[View the full topic](https://support.stalw.art/t/s3-put-isnt-retried-after-a-connection-error/2221)._
