Incomplete download using requests.get() - Windows vs. Linux
<p>I have a large file (> 10G) that I am trying to download using Requests.  On Windows, if I use code similar to the chopped down version below:</p>

<pre><code>import requests


request = requests.get(MyURL, stream=True)
with open(MyFile, 'wb') as fd:
    for chunk in request.iter_content(request_chunksize):
        if chunk:
            fd.write(chunk)
</code></pre>

<p>The download will be discontinued at some random point in the process, say 40% in to it.  It won't throw an exception or error out in any way, it just stops and my program will continue as if it completed.  If I modify the request to look like:</p>

<pre><code>request = requests.get(MyURL, stream=True, timeout=(12, 6000))
</code></pre>

<p>Then on Windows the download will run to 100%.  If I move this new version of the code to Linux, I see the same results as before, where the download will stop at some random point.  Any ideas as to why this behavior may be occurring and how to fix it?</p>

<p>Thanks. </p>