Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wininet.dll...InternetCloseHandle Problem

Status
Not open for further replies.

TURNERMICH

Technical User
Apr 5, 2000
64
AU
I am using wininet to ftpput and ftpget files.

When i use InternetCloseHandle hconnection1
to disconnect on a NT server all ok.

I have tried several 3rd party FTP Servers, serv-u,bison etc, and when i send this command to the server
does not close the connection.

If i connect using say ws_ftp, it does close the server connection.

Is there any other command i can send BYE ??? etc,
or some other method to force the ftp server to close the connection.

If i open and close a large number of time, the ftp server runs out of connections!!!!

-----------------------------------------------
I am also having the Timeout problem with Wininet, which i understand from reading a lot of comments,
cannot be stopped?????
What i am doing is closing the connection and reopening
if the FtpPut fails!!! Hence the above close problem.
-----------------------------------------------

Appreciate any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top