[racket] FTP strange behavior

From: Eduardo Bellani (ebellani at gmail.com)
Date: Mon Feb 7 10:05:48 EST 2011

Hello list

I am getting an error out of this snippet that I think I should not be
getting:

(require net/ftp)


(define conn (ftp-establish-connection "ftp.datasus.gov.br" 21
"anonymous" ""))

(ftp-cd conn "siasus/Documentos")

(ftp-download-file conn "./" "APAC.xls")

(ftp-close-connection conn)


the error is
ftp: exected result code 150, got 125 Data connection already open;
Transfer starting.

My version is 5.0.2/linux

Could anyone tell me what could be wrong?

-- 
Eduardo Bellani

omnia mutantur, nihil interit.


Posted on the users mailing list.