I recently updated it and added the FtpCommand() to send QUOTE commands.
The first thing I noticed is that the the InternetCloseHandle() is hanging
in closing the FTP connection handle after a FtpCommand() is used.
I tested/traced a FTP session against our FTP server and I noticed that
WININET.DLL never sends a QUIT
command to the FTP server.
So I what I did was send the QUOTE QUIT command prior to using the
InternetCloseHandle() and it worked.
InternetCloseHandle() does not hang any more.
Question:
Shouldn't the InternetCloseHandle() for FTP connection handle send the QUIT
command to the server?
If you debug/trace the Windows FTP.EXE client, you will see it issue a QUIT
command when you type the CLOSE command.
And why would InternetCloseHandle() hang in the first place?
Thanks in Advance
--
Hector Santos
Wildcat! Interactive Net Server
http://www.santronics.com