Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Increase timeout values. WinInet

2,706 views
Skip to first unread message

Saju Paul

unread,
Nov 28, 2007, 1:13:09 AM11/28/07
to
Hi,

I have IE7 installed and I am using the WinInet library for http requests.
There is a peculiar requirement in my app where I have to wait for a long
time to get the response for the request I make calling HttpSendRequest. But
the call times out after 30 seconds or so. I have tried things mentioned in
the link below but could not get it to work.
http://support.microsoft.com/kb/q181050/

It always times out after 30 seconds saying ERROR_INTERNET_TIMEOUT.


Vladimir Scherbina

unread,
Nov 28, 2007, 9:38:06 AM11/28/07
to
Did you tried to set timeout option on a handle using InternetSetOption?

--
Vladimir
"Saju Paul" <saju...@persistent.co.in> wrote in message
news:%23Hu$BXYMIH...@TK2MSFTNGP05.phx.gbl...

Saju Paul

unread,
Nov 29, 2007, 7:31:50 AM11/29/07
to
Thanks. Actually I had tried it earlier but could not get it to work. When
you pointed out the same thing, I tried it again and got it to work.
Thanks!.
For the benefit of others, here is what worked for me.
b = InternetSetOption(hInternetHandle, INTERNET_OPTION_RECEIVE_TIMEOUT,
&dwTimeut, sizeof(DWORD));

"Vladimir Scherbina" <v_sch...@online.mvps.org> wrote in message
news:OZEjNxcM...@TK2MSFTNGP05.phx.gbl...

Volodymyr Shcherbyna

unread,
Nov 29, 2007, 10:37:35 AM11/29/07
to
It should work in all cases.

--
Volodymyr


"Saju Paul" <saju...@persistent.co.in> wrote in message

news:%23LfeXPo...@TK2MSFTNGP04.phx.gbl...

0 new messages