Andrés García solved bug report #515228 by making sure the progress meter
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Feb 2002 13:38:34 +0000 (13:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Feb 2002 13:38:34 +0000 (13:38 +0000)
is updated even if everything is read in one single pass, as the windows
functions apparantly does more often than other systems.

lib/transfer.c

index 6180832..c90744d 100644 (file)
@@ -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;
               }