<div dir="ltr">From what I understand the problem should be fixed in urllib so that it always closes the FTP connection. I understand this is what happens in recent 3.x versions but not on 2.7.<div>As for ftplib, I don't like the solution of using a `<span style="color:rgb(0,0,0);font-size:11.8953px;white-space:pre-wrap">transfer_in_progress` flag in all commands</span><span style="color:rgb(0,0,0);font-size:11.8953px;white-space:pre-wrap">. I see that as a cheap way to work around the fact that the user may forget to call </span><span style="color:rgb(0,0,0);font-size:11.8953px;white-space:pre-wrap">voidresp() and close the socket after </span><span style="color:rgb(0,0,0);font-size:11.8953px;white-space:pre-wrap">nt/transfercmd(). </span><span style="color:rgb(0,0,0);font-size:11.8953px;white-space:pre-wrap">It probably makes sense to just update nt/transfercmd() doc instead and make that clear.</span></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 19, 2016 at 12:01 PM, Ivan Pozdeev via Python-Dev <span dir="ltr"><<a href="mailto:python-dev@python.org" target="_blank">python-dev@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm currently working on <a href="http://bugs.python.org/issue25458" rel="noreferrer" target="_blank">http://bugs.python.org/issue25<wbr>458</a> .<br>
There are a few options there, and each one has drawbacks.<br>
So, I'd like to get some feedback on which way is prefereable before working towards any of them and/or other ideas should they arise.<br>
<br>
The problem and the options are summarized in <a href="http://bugs.python.org/issue25458#msg283073" rel="noreferrer" target="_blank">http://bugs.python.org/issue25<wbr>458#msg283073</a> and the message after that one.<br>
<br>
Apart from the options, I'd like to know if I must solve the 2nd problem (error handling), too, or it can be handled in a separate ticket.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Regards,<br>
Ivan<br>
______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/g.rodola%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/g.rodola%<wbr>40gmail.com</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Giampaolo - <a href="http://grodola.blogspot.com" target="_blank">http://grodola.blogspot.com</a></div><div><br></div></div></div>
</div>