Multi-threaded FTP Question
Jeremy Jones
jemejones at gmail.com
Tue Jul 11 10:02:04 EDT 2006
On 11 Jul 2006 06:45:42 -0700, dbandler at gmail.com <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?
>
>
Would you mind posting your code? Are you trying to pass the same FTP
connection object to all 5 threads?
--
Jeremy M. Jones
http://jeremymjones.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060711/44056e06/attachment.html>
More information about the Python-list
mailing list