I tested this by clearing the DLLs one-by-one. InternetSetOption was always the one that caused the 60 second delay. However, a change to a setting in the wwFTP class solved the problem. I had nHTTPConnectType set to 0 and I changed it to 1. This let InternetSetOption clear immediately. Rick never could get it to "hang", even with nHTTPConnectType set to 1. Obviously there seems to be a number of factors aligning themselves here and they're just not aligned "properly" on his machine. But it seems to be solved now. Thanks for your reply.
>>I'm using the West Wind wwFTP class to do some transfers via FTP and it uses the InternetSetOption DLL. When it is cleared at the end of program execution, it "hangs" - it sits there for around 60 seconds or so, then goes on. I assume it does clear it, but in any event program execution continues normally and the program shuts down. But I'm not sure why this delay is occurring and would obviously like to be rid of it. Anyone have any ideas?
>>
>
>
>Russell,
>
>The InternetSetOption is one of many functions in the Wininet.dll. I doubt that it would be responsible for any "hangs" after a session ended.