Hello
The answer is yes and no.
176420 BUG: InternetSetOption Does Not Set Timeout Values
http://support.microsoft.com/?id=176420
For IE 6.x the different timeout settings should be all fixed for HTTP
however FTP may still fail. Also be aware that this is only connnect
timeout and you should also set the other timeout settings.
INTERNET_OPTION_CONNECT_TIMEOUT
INTERNET_OPTION_RECEIVE_TIMEOUT
INTERNET_OPTION_SEND_TIMEOUT
I also don't know if MFC is doing anything that is keeping from being set
correctly. You can use debug build of WinInet to get a trace and see what
is happeing.,
884931 How to use the debug version of the Wininet.dll file for Internet
http://support.microsoft.com/?id=884931
Thanks
Brian [MSFT]
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: "Joe" <***@home.com>
| Newsgroups: microsoft.public.inetsdk.programming.wininet
| Subject: does INTERNET_OPTION_CONNECT_TIMEOUT work or not?
| Date: Tue, 28 Dec 2004 03:23:28 -0000
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
| Lines: 32
| Message-ID: <41d0d1b0$0$19158$***@news-text.dial.pipex.com>
| NNTP-Posting-Host: 81-86-229-91.dsl.pipex.com
| X-Trace: 1104204209 news-text.dial.pipex.com 19158 81.86.229.91:4157
| X-Complaints-To: ***@uk.uu.net
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutp
eer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!bnewsoutpeer01.bru.o
ps.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!bnewspost00.bru.ops.eu.uu.net!e
mea.uu.net!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.inetsdk.programming.wininet:11940
| X-Tomcat-NG: microsoft.public.inetsdk.programming.wininet
|
| Hi,
|
| I've read that
| INTERNET_OPTION_CONNECT_TIMEOUT
|
| never used to work but does now, however I can't get it functioning. I've
| downloaded and compiled the MS TEAR example
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/
html/_sample_mfc_tear.asp
|
| and added
|
| BOOL bret=session.SetOption(INTERNET_OPTION_CONNECT_TIMEOUT,0);
|
| after AfxParseURL (line 212).
|
|
|
| Would someone confirm whether it works and if so please post some code
| amendments to confirm that
| I can get it working on my machine?
|
| I have 6.0.2800.1405 of wininet.dll
|
| Thanks
|
|
|
|
|
|
|
|