Re: SOCKSmodule ok except for ftplib

Guido.van.Rossum@cwi.nl
Tue, 10 May 1994 08:58:50 +0200

> It was only working for direct connections. I'm still having trouble
> accept()ing a connection through SOCKS... I'm getting:
>
> *cmd* 'PORT 148,57,162,35,8,18'
> *resp* '200 PORT command successful.'
> *cmd* 'RETR 04.23.58.Connolly'
> *resp* "425 Can't build data connection: Connection timed out."

You're probably still working with the 1.0.1 version of ftplib.py. In
1.0.2, all calls to listen(0) have been changed to listen(1). This
was necessary for Solaris 2; using listen(0) there gave exactly the
same kind of error you are reporting here.

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL: <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>

PS thanks for the contribution!