tsp
CDCloudflare Developers
•Created by tsp on 1/15/2024 in #workers-help
Internal error in Durable Object storage write caused object to be reset
I experienced a spike of these errors in my worker, but they stopped occurring after that.
1 replies
CDCloudflare Developers
•Created by tsp on 11/29/2023 in #workers-help
Durable object alarms sometimes throw exceptions
1 replies
CDCloudflare Developers
•Created by tsp on 6/19/2023 in #workers-help
Error: socket hang up when sending 30+ parallel requests to a worker
Hi!
I have a cloudflare worker that acts as a proxy for downloading files from a S3-like service. I'm running into a bug where my client code (a node.js script) throw a
socket hang up
error when I download 30+ files in parallel on a slow connection (780kbps bandwidth via Mac OS network link conditioning)
Here are some observations and details about the issue:
- I can reproduce the bug ~90% of the time
- The bug does not occur if I disable network link conditioning and use a 100Mbps network.
- the bug only starts happening when I download ~30 files in parallel on a slow connection. Downloading ~20 files works fine on that connection
- when I check the real-time logs using wrangler tail, I do not see any logs for the request that throws the socket hang up error. However, other requests are logged correctly.
- Using the S3-like service without the cloudlare worker as a proxy doesn't cause the error to happen
- I looked at the traffic via Wireshark and a RST
packet gets sent from cloudflare when the socket hang up
error gets thrown
- I can reproduce the bug on my fast connection as well but it's very rare
I would appreciate any suggestions on what I should investigate or which Cloudflare logs I should examine. Thank you very much for your assistance!3 replies