classification
Title: urllib fails with multiple ftps
Type: behavior Stage: test needed
Components: Library (Lib) Versions: Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ajaksu2, orsenthil, reowen (3)
Priority: normal Keywords

Created on 2004-11-16 23:02 by reowen, last changed 2009-02-12 18:17 by ajaksu2.

Files
File name Uploaded Description Edit Remove
urllibftpbug.py reowen, 2004-11-16 23:02 Sample script; instructions in header
Messages (2)
msg23169 - (view) Author: Russell Owen (reowen) Date: 2004-11-16 23:02
I find that urllib fails on ftp if:
- I start more than 1 transfer, each in its own thread
- I let those finish
- I again start more than 1 transfer, each in its own thread
One of the latter xfers will fail with:
  [Errno ftp error] 200 Type set to A

I have attached sample code that demonstrates the problem.

Notes:
- I have seen the problem on more than one ftp server, using 
different sets of sample files.
- An explicit ";type=i" suffix on binary file URLs does not help. I have 
not tried text files with explicit "type=a".
msg81794 - (view) Author: Daniel Diniz (ajaksu2) Date: 2009-02-12 18:17
OP supplied a detailed test. Needs confirmation.
History
Date User Action Args
2009-02-12 18:17:35ajaksu2setnosy: + ajaksu2, orsenthil
stage: test needed
type: behavior
messages: + msg81794
versions: + Python 2.6, - Python 2.3
2004-11-16 23:02:15reowencreate