Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.14 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.14 KB

php-aws-bulk-upload-sample

Testing various configurations to reproduce this issue.

Setup

  1. See file_metadata.txt and generate test files that are similar and put them into ./input
  2. Create S3 bucket and rename values for $bucket and $key in run.php
  3. Set AWS credential environment variables in your shell

Running

✅ Alpine 3.19

  • PHP 8.2.25
  • curl 8.9.1
  • OpenSSL 3.1.7
$ docker compose run --build --rm alpine

❌ Debian Bookworm

  • PHP 8.2.24
  • curl 7.88.1
  • OpenSSL 3.0.15
$ docker compose run --build --rm debian

❌ Debian Bookworm (cURL backport)

  • PHP 8.2.24
  • curl 8.10.1
  • OpenSSL 3.0.15
$ docker compose run --build --rm debian.backport

Tweaking cURL Options

Name Impact
CURLOPT_FORBID_REUSE Set to false resolves issue
CURLOPT_MAXLIFETIME_CONN Lowering value makes issue less likely to occur