title: AWS CLI copy "Max retries exceeded...", error 10054: "connection forcibly closed by remote host"
body: <p>This happens with <code>sync</code> or <code>cp</code>, copying about 1000 files from our local server to an S3 bucket. The source is a mapped network drive from a Windows 8 machine to a Windows Server 2008 R2 VM running in Hyper-V.</p>
  
  <p>This is the command:</p>
  
  <pre><code>aws s3 cp X:\folder s3://my-bucket/folder --recursive
  </code></pre>
  
  <p>There doesn't appear to be any pattern to the files it fails on. Some are larger (up to 30MB), others are only a few kb. This is the error message:</p>
  
  <pre><code>HTTPSConnectionPool(host='XXX.s3.amazonaws.com', port=443): Max retries exceeded with url: ... (Caused by &lt;class 'socket.error'&gt;: [Errno 10054] An existing connection was forcibly closed by the remote host)
  </code></pre>