Describe the bug
Using the aws-php-sdk transfer function to upload a directory of files always fails at some point during the process.
Expected Behavior
I would expect these operations would be retried by the SDK or these sort of error would be very rare.
Current Behavior
Uploading a batch of 73 files, ranging in size from 58MB to 2MB consistently fails sometime in the middle of the batch with one of the following errors...
AWS HTTP error: cURL error 55: Connection died, tried 5 times before giving up
AWS HTTP error: cURL error 52: Empty reply from server
RequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
Reproduction Steps
The following php script runs in a debian12 docker container using php82.
<?php
require __DIR__ . '/vendor/autoload.php';
use Aws\S3\S3Client;
$bucket = 'redacted';
# setup client
$connection = S3Client::factory();
$options = array(
'debug' => true,
'concurrency' => 40,
'mup_threshold' => 16777216
);
$manager = new \Aws\S3\Transfer(
$connection,
"/tmp/input/",
"s3://$bucket/php-upload-test",
$options
);
$manager->transfer();
Possible Solution
No response
Additional Information/Context
SDK version used
3.321.0
Environment details (Version of PHP (php -v)? OS name and version, etc.)
php 8.2.22 ; OpenSSL 3.0.13 ; curl 7.88.1 ; debian12 (docker container)
Describe the bug
Using the aws-php-sdk transfer function to upload a directory of files always fails at some point during the process.
Expected Behavior
I would expect these operations would be retried by the SDK or these sort of error would be very rare.
Current Behavior
Uploading a batch of 73 files, ranging in size from 58MB to 2MB consistently fails sometime in the middle of the batch with one of the following errors...
AWS HTTP error: cURL error 55: Connection died, tried 5 times before giving upAWS HTTP error: cURL error 52: Empty reply from serverRequestTimeout (client): Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.Reproduction Steps
The following php script runs in a debian12 docker container using php82.
Possible Solution
No response
Additional Information/Context
FLACaudio filesSDK version used
3.321.0
Environment details (Version of PHP (
php -v)? OS name and version, etc.)php 8.2.22 ; OpenSSL 3.0.13 ; curl 7.88.1 ; debian12 (docker container)