diff options
author | Michael Brown | 2007-01-29 05:19:45 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-29 05:19:45 +0100 |
commit | bde8878eef55434428da0d8531c8c17d42867427 (patch) | |
tree | 381c5fca26b33c0e7a571c481de76f51140b4624 /src/net/tcp | |
parent | Added async_block_progress() and default SIGUPDATE handler. (diff) | |
download | ipxe-bde8878eef55434428da0d8531c8c17d42867427.tar.gz ipxe-bde8878eef55434428da0d8531c8c17d42867427.tar.xz ipxe-bde8878eef55434428da0d8531c8c17d42867427.zip |
Keep HTTP progress updated, and display a progress indicator during the
download
Diffstat (limited to 'src/net/tcp')
-rw-r--r-- | src/net/tcp/http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net/tcp/http.c b/src/net/tcp/http.c index 32932445..18030fe6 100644 --- a/src/net/tcp/http.c +++ b/src/net/tcp/http.c @@ -253,6 +253,10 @@ static void http_rx_data ( struct http_request *http, return; } + /* Update progress */ + http->async.completed = http->buffer->fill; + http->async.total = http->content_length; + /* If we have reached the content-length, stop now */ if ( http->content_length && ( http->buffer->fill >= http->content_length ) ) { |