R2 Stale Connections Bug

While working with R2 and somewhat larger files (above 4MB) I noticed that R2 doesn't handle file fetches well if a connection wasn't gracefully closed after a file was uploaded. It looks like R2 proxies get a lock on the file which prevents any further fetches. I've build a small application that demonstrates the issue and I was wondering if the Cloudflare R2 dev team could have a look at this. The example app can be found here: https://github.com/michelvocks/r2-stale-connection-bug
GitHub
Cloudflare R2 stale connection bug demo application - michelvocks/r2-stale-connection-bug
Was this page helpful?