r***@gmail.com
2008-04-28 20:23:47 UTC
In my WinInet usage, I don't want the WinInet call to timeout, as a I
have another thread that monitors the thread that calls WinINet APIs.
This gives me a control on the timeout from few seconds to even few
weeks. I want to set the value of timeout to infinite for the
following options.
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT
INTERNET_OPTION_CONTROL_SEND_TIMEOUT
INTERNET_OPTION_DATA_RECEIVE_TIMEOUT
INTERNET_OPTION_DATA_SEND_TIMEOUT
The API doc at http://msdn2.microsoft.com/en-us/library/aa385328(VS.85).aspx
states that setting value 0xFFFFFFFF disbles the timer. Nowhere, it
apparantly says that what value is considered infinite. I tried
setting it to one month, it did not succeed. HttpSendRequest fails for
a call that takes longer than 30 seconds. Setting it to 24 days was
OK. But these are not infinite values. Anyone knows what value sets
infinite timeout for these options.
Thanks,
Roop Goyal
have another thread that monitors the thread that calls WinINet APIs.
This gives me a control on the timeout from few seconds to even few
weeks. I want to set the value of timeout to infinite for the
following options.
INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT
INTERNET_OPTION_CONTROL_SEND_TIMEOUT
INTERNET_OPTION_DATA_RECEIVE_TIMEOUT
INTERNET_OPTION_DATA_SEND_TIMEOUT
The API doc at http://msdn2.microsoft.com/en-us/library/aa385328(VS.85).aspx
states that setting value 0xFFFFFFFF disbles the timer. Nowhere, it
apparantly says that what value is considered infinite. I tried
setting it to one month, it did not succeed. HttpSendRequest fails for
a call that takes longer than 30 seconds. Setting it to 24 days was
OK. But these are not infinite values. Anyone knows what value sets
infinite timeout for these options.
Thanks,
Roop Goyal