G
Guest
Private Declare Function FtpPutFile Lib "wininet.dll" (ByVal hConnect As
Integer, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String,
ByVal dwFlags As Integer, ByVal dwContext As Integer) As Boolean
When i use FtpPutFile to send a file the the ftp server, and the internet
connection is lost during the trasfer, FtpPutFile does not timeout and return
False like it should. It will sit there forever and never return.
I don't have any problem while using other wininet functions while internet
connection is lost like FtpSetCurrentDirectory and InternetConnect. They
timeout in about 5 seconds and they return false like they should.
I have tried using FtpOpenFile and InternetWriteFile as a replacement for
FtpPutFile but i get the same problem, it never timeouts when internet
connection is lost during a transfer.
Is this a known bug for wininet and is there a workaround?
Integer, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String,
ByVal dwFlags As Integer, ByVal dwContext As Integer) As Boolean
When i use FtpPutFile to send a file the the ftp server, and the internet
connection is lost during the trasfer, FtpPutFile does not timeout and return
False like it should. It will sit there forever and never return.
I don't have any problem while using other wininet functions while internet
connection is lost like FtpSetCurrentDirectory and InternetConnect. They
timeout in about 5 seconds and they return false like they should.
I have tried using FtpOpenFile and InternetWriteFile as a replacement for
FtpPutFile but i get the same problem, it never timeouts when internet
connection is lost during a transfer.
Is this a known bug for wininet and is there a workaround?