Discussion:
Increase timeout values. WinInet
(too old to reply)
Saju Paul
2007-11-28 06:13:09 UTC
Permalink
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
2007-11-28 14:38:06 UTC
Permalink
Did you tried to set timeout option on a handle using InternetSetOption?
--
Vladimir
Post by Saju Paul
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.
Saju Paul
2007-11-29 12:31:50 UTC
Permalink
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));
Post by Vladimir Scherbina
Did you tried to set timeout option on a handle using InternetSetOption?
--
Vladimir
Post by Saju Paul
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.
Volodymyr Shcherbyna
2007-11-29 15:37:35 UTC
Permalink
It should work in all cases.
--
Volodymyr
Post by Saju Paul
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));
Post by Vladimir Scherbina
Did you tried to set timeout option on a handle using InternetSetOption?
--
Vladimir
Post by Saju Paul
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.
Loading...