Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Consume (and discard) body in Initiate Multipart Upload request #2048

Merged

Conversation

matdue
Copy link
Contributor

@matdue matdue commented Sep 16, 2024

… (to satisfy AWS CRT-based S3 client)

Description

A PutObject request to upload a stream of unknown size results in a timeout when using the AWS CRT-based S3 client. It seems that this client is a bit picky with HTTP protocol, other clients work fine. The TransferManager behaves similarly.

PutObject with a stream of unknown size initiates a multipart upload. This POST request does not require any input in the body. If we do not consume the (empty) body, the S3 client will hang and timeout after 10 seconds.

Streams of known size did not result in a timeout.

Related Issue

Tasks

  • I have signed the CLA.
  • I have written tests and verified that they fail without my change.

Copy link
Member

@afranken afranken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@afranken afranken added the bug label Sep 19, 2024
@afranken afranken merged commit 6afa83a into adobe:main Sep 19, 2024
6 checks passed
@matdue matdue deleted the consume-body-when-initiating-multipart-upload branch September 19, 2024 17:40
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants