title: AWS CLI S3 sync error "An existing connection was forcibly closed by the remote host"
body: <p>I'm trying to sync my static website with S3 bucket using this command:</p>
  
  <pre><code>aws s3 sync folder s3://my-bucket --region us-west-2 --delete --acl public-read --cache-control="max-age=7200" --exclude "*" --include "*.html"
  </code></pre>
  
  <p>I have about 300 HTML files spread across several subfolders. The command above crashes on the last file with <code>('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))</code> error. The process always hangs on the very last file and then returns that error.</p>
  
  <p>I tried changing <strong>max_concurrent_requests</strong> to 1 and <strong>multipart_chunksize</strong> to  2MB with no luck. The process successfully uploads 299 files out of 300 and then get stuck on the last file. Then a <code>('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))</code> error reported.
  The last file doesn't get uploaded.</p>
  
  <p>I tried search for that error, but found no working solution. I'm on Windows 10 and website folder isn't encrypted.</p>
  
  <p>What can cause that error?</p>