Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: ANNOUNCE vdr-weather-0.2.0.tgz



> |PORT 172,17,42,3,152,146
> |500 Illegal PORT Command
> |RETR EDHL.TXT
> |425 Can't build data connection: Connection timed out.
> |ftp error
> |425 Can't build data connection: Connection timed out.

Hm, strange. This error I got with my own ftp implementation and the cause
to use ftplib. My vdr is behind a linux router with iptables too.

> Can ftplib work in passive mode?

Try the following patch (Hope it works, cause I have no vdr at work):

--- metarReader.c.orig  Fri Apr  4 11:22:45 2003
+++ metarReader.c       Fri Apr  4 11:24:26 2003
@@ -98,6 +98,19 @@
        }
 
        logLastResponse(conn);
+       dsyslog("Using passive connection mode.");
+       
+       
+       //possible connection modes: FTPLIB_PORT and FTPLIB_PASSIVE. Default
is set at build of ftplib
+       if (FtpOptions(FTPLIB_CONNMODE, FTPLIB_PASSIVE, conn) == 0) {
+               dsyslog("Could not set passive mode.");
+               logLastResponse(conn);
+               FtpQuit(conn);
+
+               return;
+       }
+       
+       logLastResponse(conn);
        sprintf(filename, "%s%s.TXT", metarDir, setup->stationId);
        dsyslog("Getting %s.", filename);



If it works, I will add a option to use passive mode.

Cheers,
Steffen

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!



-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index