Tornado large file download
<p>I'm experimenting with Content-Disposition on tornado. My code for reading and writing of file looks like this:</p>

<pre><code>with open(file_name, 'rb') as f:
        while True:
            data = f.read(4096)
            if not data:
                break
            self.write(data)
    self.finish()
</code></pre>

<p>I expected the memory usage to be consistent since it is not reading everything at once. But the resource monitor shows:</p>

<pre><code>In use    Available
12.7 GB   2.5GB
</code></pre>

<p>Sometimes it will even BSOD my computer...<br/>
How do I download a large file (say 12GB in size)?</p>