FTP hangs on close

Aahz Maruch aahz at netcom.com
Thu Mar 9 10:31:04 EST 2000


In article <Pine.LNX.4.21.0003090908560.31845-100000 at fep132.fep.ru>,
Oleg Broytmann  <phd at phd.russ.ru> wrote:
>On Wed, 8 Mar 2000, Makhno wrote:
>> 
>> The client is probably waiting for a 'goodbye' message from the server,
>> which, due to a botched server configuration (or maybe the admin's choice)
>> is never sent, so the client waits indefinately.
>
>   On the other hand - it seems the program hangs hard - I cannot kill it
>with ^C - only "kill $pid" can help. I cannot believe ftplib is waiting
>"goodby" so hard :)

Yes, it is, because it's not in Python, it's in a kernel socket call.
I've run into this many times with urllib against HTTP.  Using a timeout
is the only answer.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"Along the lines of getting a massage, taking a hot bubble bath, and
swimming in a pool of warm, melted chocolate, can you give me some
innovative ways that you pamper yourself?"
"Spend three hours flaming stupid people on the Net."  --Aahz



More information about the Python-list mailing list