title: AWS SDK PHP S3Client putObject get stuck
body: <p>I have a script which generate lot of XML files, and upload them one by one into S3 with this basic code:</p>
  
  <pre><code>    $this-&gt;awsFactory-&gt;getS3Client()-&gt;putObject([
          'Bucket' =&gt; $bucketName,
          'Key'    =&gt; $key,
          'Body'   =&gt; $xml,
          'ACL'    =&gt; 'public-read',
          '@http' =&gt; [
              'progress' =&gt; function ($expectedDl, $dl, $expectedUl, $ul) {
                  printf(
                      "%s/%s uploaded.\n",
                      $ul,
                      $expectedUl
                  );
              }
          ]
      ]);
  </code></pre>
  
  <p>(I added the callback because of my problem)</p>
  
  <p>Sometime, randomly, the upload is stuck, and never timeout. Sometime it restart after fiew minutes, sometime not.
  It can happen after 60 files, or after more that 150 files, totally random</p>
  
  <p>Here the callback example:</p>
  
  <pre><code>0/0 uploaded.
  0/2128256 uploaded.
  16384/2128256 uploaded.
  16384/2128256 uploaded.
  32768/2128256 uploaded.
  32768/2128256 uploaded.
  49152/2128256 uploaded.
  // ...
  // (it start normally)
  // And at a moment, the upload stop send datas
  // ...
  1048576/2128256 uploaded.
  1064960/2128256 uploaded.
  1064960/2128256 uploaded.
  1081344/2128256 uploaded.
  1081344/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  1097728/2128256 uploaded.
  // ...
  </code></pre>
  
  <p>it stuck at 1097728/2128256, and I got thousands of same lines</p>
  
  <p>Any ideas of what happen?</p>
  
  <p>Thanks for helping :)</p>