FTP hangs with urllib.urlretrieve

Aahz Maruch aahz at netcom.com
Wed Mar 8 18:17:11 EST 2000


In article <Pine.BSF.4.10.10003072021420.23240-100000 at chi.pair.com>,
Michal Wallace (sabren) <sabren at manifestation.com> wrote:
>On Tue, 7 Mar 2000, Oleg Broytmann wrote:
>> 
>>    I am developing/running URL checker (sorry, yet another one :). And
>> found that I have consistent hangings on some FTP URLs.
>> 
>>    Here is test program I am using to retest my results - just URLopener
>> and urlretrieve, nothing magical; python is stock 1.5.2, hangs on all
>> platforms I am using - Pentium Linux, Sparc Solaris, Pentium FreeBSD:
>
>This is not limited to ftp urls... urllib just hangs sometimes.

I've submitted a patch that gives httplib.HTTP() a default timeout that
fixes these kinds of problems, but Guido hasn't accepted it yet.  If
someone wants to help me provide the info that Guido wants, I'd really
appreciate it.  Once that's done, it should be straightforward to patch
ftplib to have the same kind of timeout.
--
                      --- 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