(original) (raw)

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.
As for ftplib, I don't like the solution of using a \`transfer\_in\_progress\` flag in all commands. I see that as a cheap way to work around the fact that the user may forget to call voidresp() and close the socket after nt/transfercmd(). It probably makes sense to just update nt/transfercmd() doc instead and make that clear.


On Mon, Dec 19, 2016 at 12:01 PM, Ivan Pozdeev via Python-Dev <python-dev@python.org> wrote:
I'm currently working on http://bugs.python.org/issue25458 .
There are a few options there, and each one has drawbacks.
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.

The problem and the options are summarized in http://bugs.python.org/issue25458#msg283073 and the message after that one.

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.

\--
Regards,
Ivan
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/g.rodola%40gmail.com



--
Giampaolo - http://grodola.blogspot.com