[issue751758] ftplib.retrbinary fails when called from retrlines callback

Giampaolo Rodola' report at bugs.python.org
Mon Sep 22 04:22:00 CEST 2008

Giampaolo Rodola' <billiejoex at users.sourceforge.net> added the comment:

In FTP every data channel is supposed to be used for a unique transfer
(RFC-1123, chapter and every client should open only one data
connection at time. Actually there isn't any official RFC which
explicitly states my second sentence but the common practices for
servers receiving a PORT or PASV request while another transfer is in
progress usually are:

- processing the request when the transfer is finished
- creating a new data channel closing the old one
- returning a 4xx temporarily failure response code

IMHO it's your use case which, even if not "officially" declared
incorrect, is usually discouraged and hence should not be covered by
base ftplib module.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list