[issue25458] ftplib: command response shift - mismatch

2016-03-09 Thread Peter Pan
Peter Pan added the comment: Here is a small test for the new version. (To see the original ftplib.py version failing copy+paste the code from my initial post into a python file and run) -- Added file: http://bugs.python.org/file42100/test_ftp.py

[issue25458] ftplib: command response shift - mismatch

2016-03-09 Thread Peter Pan
Peter Pan added the comment: I've updated "ftplib.py" from the 3.5.1 source code release. This should fix issues: http://bugs.python.org/issue25458 http://bugs.python.org/issue25491 -- Added file: http://bugs.python.org/file42099

[issue25458] ftplib: command response shift - mismatch

2016-03-08 Thread Peter Pan
Peter Pan added the comment: The problem in my example is ftplib reports a "226" response to command "NOOP" which is nonsense. ftplib received "226" before "ftp.sendcmd('NOOP')" was called. Since "transfercmd()" returns a socket, ftpli

[issue25458] ftplib: command response shift - mismatch

2015-10-22 Thread Peter Pan
New submission from Peter Pan: When handling the transfer socket manually the asynchronous status message "226 transfer complete" on the control socket is falsely taken as response for the last sent command. ftplib reads the response too late and the command/response order becomes i