Hi Serge,
> The previous problem is solved but this occurs in a totally different
> application. I used the FTPCLI.PRG as before. Even changed to 1024... it
> hangs up.
> I send a small piece of the logging
>
> 20210202-16:01:45 :INETSENDALL( <pointer>, 63, STOR
> /domains/XXXXXXXXXXXXXXX.com/public_html/ZZZZZZZZZZZ.php<cr><lf> )
> >> 63 <<
> 20210202-16:01:46 :INETERRORCODE( <pointer> )
> >> 0 <<
> 20210202-16:01:46 :INETRECVLINE( <pointer>, , 1024 )
> >> 150 Opening BINARY mode data connection for
> /domains/XXXXXXXXXXXXXXX.com/public_html/ZZZZZZZZZZZ.php <<
> 20210202-16:01:46 :INETERRORCODE( <pointer> )
> >> 0 <<
> 20210202-16:01:46 :INETSENDALL( <pointer>, 6, QUIT<cr><lf> )
> >> 6 <<
> 20210202-16:02:26 :INETRECVLINE( <pointer>, , 1024 )
> >> <<
> 20210202-16:02:26 :INETERRORCODE( <pointer> )
> >> -1 <<
This is an entirely different problem. You are getting a proper 150
message, which by the way is 103 bytes in this case, and the error code
at that point is 0. So far so good.
Then you send a QUIT without first uploading anything, and there is a 40
second timeout before you ask the server for a status message again, and
then it returns nothing and an error code meaning HB_INET_ERR_TIMEOUT at
the end.
How do you upload the file? UploadFile()? Write() from a memory
variable? Have you checked that the content exists? Before the QUIT
message there should be an ...
INETSENDALL( <pointer>, size_of_the_file, content_of_the_file )
... following the same pattern as the other INETSENDALL log lines, but
there is no trace of any such message, or even an attempt to send such a
message, in the log.
Regards,
Klas