[issue13714] Methods of ftplib never ends if the ip address changes

Giampaolo Rodola' report at bugs.python.org
Thu Jan 5 11:00:31 CET 2012


Giampaolo Rodola' <g.rodola at gmail.com> added the comment:

What storbinary does is just using a socket to send data.
There's no way for storbinary to ask the socket whether an unpredicted event such as an IP change occurred and neither it should.

As a user, you just shouldn't change the IP address while a network app is running on that network interface and expect it to keep working or raise an exception.  
The consequences are unpredictable and are probably subject to change depending on what platform you're on.

In summary, this is not a problem which should be dealt with by base ftplib or any other network lib in the stdlib.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13714>
_______________________________________


More information about the Python-bugs-list mailing list