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

The problem with getting file upload progress

3 views
Skip to first unread message

Eugene

unread,
Jan 11, 2009, 6:20:01 AM1/11/09
to
Hello,

I experience a problem with getting file upload progress through WinInet
API. I use windows task manager for monitoring network activity and it looks
like there is a few seconds delay between the first call of InternetWriteFile
function and a start of data sending.

I suppose that during the first few seconds data is cached somewhere but not
being sent, nevertheless callback function gets INTERNET_STATUS_REQUEST_SENT
notifications. After that I see some “silence” period in the callback
function calls and at this moment network monitor starts to display network
activity. So by the moment when network monitor starts to show upload process
I am reported that some data is already uploaded (about 8-50 Mb) with
INTERNET_STATUS_REQUEST_SENT notifications. The actual problem occurs when
uploading data is completely cached and I have no idea how much data was
really uploaded.

Is there another way to get uploading progress or maybe I do something wrong?

The problem can be reproduced with Asynchronous Example:

http://msdn.microsoft.com/en-us/library/cc185683(VS.85).aspx

Best regards,
Eugene

0 new messages