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

Re: Set up a timeout with FTPAPI



Hello,

It would appear that a firewall or NAT router isn't allowing a 
connection on port 56765 from the FTP server to the computer that's 
running FTPAPI.

That port number is "random", depending on what the OS assigns...  so 
it'll be different every time.  This is one of the big shortcomings of 
the FTP protocol.

People usually work around this by using 'passive' mode.  You can set 
that in FTPAPI by calling FTP_passiveMode(mySession: *ON).

Good luck


On 12/29/2010 4:30 AM, Mario Martoriello wrote:
>
>     Hi all
>     I �m using ftpapi to send/receive some file via ftp from RPG program.
>     Sometimes  it happens that after the login e password the program
>     waits. I look in the joblog and I see that the last messages in joblog
>     is
>     250 CWD command successful.
>     >  TYPE I
>     200 Type set to I.
>     >  PORT 192,168,1,100,221,189
>     200 PORT command successful.
>     >  STOR 3056010.ORD
>     150 Opening data connection for 3056010.ORD.
>     after this msg the pgm remains blocked waiting for something
>     What may I check or can I set up a timeout and abort the ftp after the
>     timeout time?
>     Thanks so much
>     Mario
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------