|
-
July 4th, 2005, 08:40 AM
#1
InternetReadFile gets stuck in second loop
Hi,
I am reading data using WinINet and InternetReadFile. The function works perfectly fine, but during the second loop, InternetReadFile takes around 30-60 seconds to return data. The size of the buffer being read is 1536 bytes so I don't see why a single call should take so long. At first I ignored this as a problem with my net connection, but this seemed to happen way too often and my net connection is never so unreliable. The strange thing is that the first call to InternetReadFile is very fast, but the second call always takes really long. Subsequent calls also don't have any problems. When I access the same URL using my browser, it comes down in under 10 secs where as the second loop of InternetReadFile causes a delay of 30+ seconds.
Does anyone know what the problem could be, or even an alrenate to InternetReadFile to read data.
Thanks,
- Sid
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|