Multi-threaded FTP Question

dbandler at gmail.com dbandler at gmail.com
Wed Jul 12 12:14:05 EDT 2006


Thanks so much for your help on this.  The server that I'm connecting
to is the culprit.  They only allow five connections at a time.

I assumed that it was a code issue.  I think that we're conditioned to
expect that the problem is on the software side of things.

-Derek


olsongt at verizon.net wrote:
> dbandler at gmail.com wrote:
> > I'm trying to use ftp in python in a multi-threaded way on a windows
> > box - python version 2.4.3.  Problem is that it appears that it's only
> > possible to have five instances/threads at one point in time.  Errors
> > look like:
> >
> >    File "C:\Python24\lib\ftplib.py", line 107, in __init__
> >     self.connect(host)
> >   File "C:\Python24\lib\ftplib.py", line 132, in connect
> >     self.welcome = self.getresp()
> >   File "C:\Python24\lib\ftplib.py", line 208, in getresp
> >     resp = self.getmultiline()
> >   File "C:\Python24\lib\ftplib.py", line 194, in getmultiline
> >     line = self.getline()
> >   File "C:\Python24\lib\ftplib.py", line 184, in getline
> >     if not line: raise EOFError
> > EOFError
> >
> > Is it possible to have more than five simultaneous ftp connections?
> >
> > Thanks.
> >
> > Derek
>
> It might be XP SP2's worm protection as well:
> 
> http://www.speedguide.net/read_articles.php?id=1497




More information about the Python-list mailing list