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

Error ERROR_WINHTTP_TIMEOUT

320 views
Skip to first unread message

Donald Largen

unread,
Jun 22, 2002, 12:47:50 AM6/22/02
to
Can some explain why I might get this return,
ERROR_WINHTTP_TIMEOUT: from winnhttprecieveresponse ? Is there a way to
set the time out to receive the response ?

Thanks


Stephen Sulzer (Microsoft)

unread,
Jun 25, 2002, 4:25:40 PM6/25/02
to
Receiving a timeout error from WinHttpReceiveResponse is not unusual at all.
Most likely, the server did not respond within the default Receive timeout,
which is 30 seconds.

You can change the timeout values using the WinHttpSetTimeouts function.

http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/winht
tp/WinHttpSetTimeouts.asp

You should set values for the dwSendTimeout and dwReceiveTimeout parameters
that are larger than the 30000 millisecond default.

Regards,

Stephen Sulzer
Microsoft Corporation


This posting is provided "AS IS" with no warranties, and confers no rights.

"Donald Largen" <donald...@msn.com> wrote in message
news:OVzubfaGCHA.2516@tkmsftngp13...

Surya Pandrangi

unread,
Jul 12, 2002, 4:03:17 PM7/12/02
to
You can set the timeout using the SetTimeouts() function and one of the
parameters is for the receive of the response.

hr = pIWinHttpRequest->SetTimeouts(0,0,0,0);

Surya


"Donald Largen" <donald...@msn.com> wrote in message
news:OVzubfaGCHA.2516@tkmsftngp13...

0 new messages