<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 6, 2017 at 8:49 PM, Stéphane Thibaud <span dir="ltr"><<a href="mailto:snthibaud@gmail.com" target="_blank">snthibaud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have tried the Network.Download library in order to download CSV files from Yahoo Finance, but after the 10th download every next download fails. Does Network.Download keep connections open? I did consume the result of the openURI function (even with deepseq). Any ideas?</blockquote></div><br>Can you get any details about why/how it fails? It could well be something as simple as Yahoo throttling you for too many connections in too short a time or something; in that case, the error from Yahoo should indicate it, but if all you get back is a 4xx or 5xx code then it won't be obvious. (Which may well mean something like running it under strace with +RTS -V0 to see the actual error returned.)<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div></div>
</div></div>