From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 20 Feb 2002 13:38:34 +0000 (+0000)
Subject: Andrés García solved bug report #515228 by making sure the progress meter
X-Git-Tag: curl-7_9_5-pre2~4
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a333bddeeb6ce46f0a7d218d78fa700c881f2833;p=curl

Andrés García solved bug report #515228 by making sure the progress meter
is updated even if everything is read in one single pass, as the windows
functions apparantly does more often than other systems.
---

diff --git a/lib/transfer.c b/lib/transfer.c
index 6180832aa..c90744d0f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -380,6 +380,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
                 /* we make sure that this socket isn't read more now */
                 k->keepon &= ~KEEP_READ;
                 FD_ZERO(&k->rkeepfd);
+                /* for a progress meter/info update before going away */
+                Curl_pgrsUpdate(conn);
                 return CURLE_OK;
               }