Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 29 May 2008 02:28:03 -0700,    group: microsoft.public.win32.programmer.directx.networking        back       


wininet timeout   
Hi,
I'm using wininet API to perform uploading of big files to a server (IIS), 
including going through authentication. Everything works just fine, except 
that i keep getting timeout (at least this is what i think) after abuout 3 
minutes. 
The setting in the IIS are ok - using web config:
<httpRuntime maxRequestLength="208400" executionTimeout="1500"/>
i also checked when i drop this number to for example 15 seconds the 
connection is stoped after around 30 seconds (because of the authentication 
phase, i see 2 calls coming out from the client, the first fails 
authentication and the seconds succeeds).
i tried setting the timeout using all possible flags i could find:
DWORD dwLength = sizeof(DWORD);
DWORD dwTimeut = 1500000; // 1500 seconds
InternetSetOption(hSession, INTERNET_OPTION_SEND_TIMEOUT, &dwTimeut, 
sizeof(DWORD));
InternetSetOption(hSession, INTERNET_OPTION_DATA_SEND_TIMEOUT, &dwTimeut, 
sizeof(DWORD));
InternetSetOption(hSession, INTERNET_OPTION_RECEIVE_TIMEOUT, &dwTimeut, 
sizeof(DWORD));
InternetSetOption(hSession, INTERNET_OPTION_DATA_RECEIVE_TIMEOUT, &dwTimeut, 
sizeof(DWORD));
InternetSetOption(hSession, INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT, 
&dwTimeut, sizeof(DWORD));
InternetSetOption(hSession, INTERNET_OPTION_CONTROL_SEND_TIMEOUT, &dwTimeut, 
sizeof(DWORD));

but i keep getting this timeout everytime without any change (it also 
doesn't work when i set it to a smaller number e.g. 5 seconds).
i saw a few references about this feature not working properly, but i also 
saw some people referring to it as working.
I have IE7 installed on my XP machine.
i would be very appriative if anyone can "shed some light" on this issue.
10x.
date: Thu, 29 May 2008 02:28:03 -0700   author:   Oded

RE: wininet timeout   
please ignore, it was opened by mistake on the wrong discussion group.
i create once in the wininet group.
10x.
date: Thu, 29 May 2008 05:37:01 -0700   author:   Oded

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us