Jonathan Bell <bell...@gmail.com> added the comment:

I should rephrase: There doesn't seem to be a practical way to verify BLOCK 
transmission mode against actual servers in the wild. As the Wikipedia article 
that Giampaolo referenced points out, BLOCK mode is a rarity that was primarily 
supported only by mainframe and minicomputer systems.

Any compliant server not supporting BLOCK should respond with a non-200 
response. The PR sends its request to enter BLOCK mode with self.voidcmd(), 
which handles non-200 responses by raising error_reply.

When I originally wrote that patch in 2008, such a system was running on a DEC 
Alpha under OpenVMS. Within months of the first test suite appearing for 
ftplib, that same vendor replaced their systems. The new server had no BLOCK 
transmission support, but was capable of handling multiple consecutive passive 
mode STREAM data connections without fault.

Even at the time, I couldn't find any other freely available FTP servers 
supporting BLOCK. But STREAM was and continues to be the standard.

Essentially this means that any changes to the existing PR may not be work 
properly with actual servers.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue2628>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to