Skip to content

fix: increase multipart upload timeout and improve error propagation#42

Open
patricioxavier8 wants to merge 1 commit into
mainfrom
fix/multipart-upload-timeouts-and-error-propagation
Open

fix: increase multipart upload timeout and improve error propagation#42
patricioxavier8 wants to merge 1 commit into
mainfrom
fix/multipart-upload-timeouts-and-error-propagation

Conversation

@patricioxavier8

Copy link
Copy Markdown
Contributor

Description

This PR introduces the following changes:

  • Increased the request timeout to 90 seconds for multipart uploads.
  • Improved error readability and traceability for multipart uploads by propagating the original network errors instead of swallowing them.

Changes

  • Timeout: Set timeoutIntervalForRequest to 90s in UploadMultipart's URLSessionConfiguration.
  • Error Propagation: Updated UploadPartOperation and UploadState to capture and pass the underlying URLError (such as timeout or connection lost) to the final EnrichedError thrown by runMultipartUpload.

- Increased URLSession request timeout to 90 seconds for multipart uploads.
- Updated UploadState and runMultipartUpload to track, extract, and propagate the original URLSession/S3 error inside EnrichedError context instead of throwing a generic UploadNotSuccessful error.
@patricioxavier8 patricioxavier8 requested review from CandelR and sg-gs June 10, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants