Ticket Change Details
Not logged in
Overview

Artifact ID: 9a971a3f12ab3c3a194f4c236c116b5841b371af
Ticket: 6883bdd1eff926009ccf60851faa8df37f2c837e
fossil pull shows always 0 bytes received
User & Date: drh 2011-01-03 22:11:54
Changes

  1. comment changed to:
    Pulling from canonical fossil repository shows always "0 bytes received" regardless of bytes transferred.
    
    <pre>
    c:\soft\bin>fossil.exe ver
    This is fossil version [79b7902cdd] 2011-01-01 03:06:47 UTC
    c:\soft\bin>fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
                    Bytes      Cards  Artifacts     Deltas
    Sent:             177          2          0          0
    Received:        1688         36          0          0
    Sent:             271          4          0          0
    Received:        4299         38          1          1
    Sent:             177          2          0          0
    Received:        1688         36          0          0
    Total network traffic: 926 bytes sent, 0 bytes received
    </pre>
    
    <hr /><i>drh added on 2011-01-02 17:41:48 UTC:</i><br />
    I am unable to replicate the problem on Linux, Windows (natively built), or
    Windows (cross-compiled).  Are you using the precompiled binary, or is this
    something that you built yourself?
    
    <hr /><i>anonymous added on 2011-01-02 18:48:41 UTC:</i><br />
    I was using my fossil build prepared with mingw under msys. But just now I downloaded precompiled version from fossil site. It shows on my system (Czech win XP with service pack 3) similar picture.
    
    <pre>
    c:\soft\bin>c:\soft\bin\fossil-w32-20110101030647.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
                    Bytes      Cards  Artifacts     Deltas
    Sent:             177          2          0          0
    Received:        1780         38          0          0
    Sent:             224          3          0          0
    Received:        2254         39          1          0
    Sent:             177          2          0          0
    Received:        1780         38          0          0
    Total network traffic: 903 bytes sent, 0 bytes received
    
    </pre>
    
    <hr /><i>anonymous added on 2011-01-03 19:55:36 UTC:</i><br />
    I wonder what is happening here. If I patch file src/xfer.c, I can see one or another value correct. I can't see correct print of both values. I've checked it on Czech Win 2000 and XP systems:
    
    Microsoft Windows 2000 [Verze 5.00.2195]
    (C) Copyright 1985-1999 Microsoft Corp.
    
    Microsoft Windows XP [Verze 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    
    patch:<br>
    <verbatim>
    Index: src/xfer.c
    ===================================================================
    --- src/xfer.c
    +++ src/xfer.c
    @@ -1567,10 +1567,14 @@
    
         /* Stop the cycle if the server sends a "clone_seqno 0" card */
         if( cloneSeqno<=0 ) go = 0;
       };
       transport_stats(&nSent, &nRcvd, 1);
    +  fossil_print("%lld bytes sent, %lld bytes received\n",nSent, nRcvd);
    +  fossil_print("%lld bytes received, %lld bytes sent\n",nRcvd, nSent);
    +  fossil_print("%lld bytes sent\n",nSent);
    +  fossil_print("%lld bytes received\n",nRcvd);
       fossil_print("Total network traffic: %lld bytes sent, %lld bytes received\n",
    
                    nSent, nRcvd);
       transport_close();
       transport_global_shutdown();
       db_multi_exec("DROP TABLE onremote");
    </verbatim>
    
    output:<br>
    <pre>
    fossil.exe pull http://www.fossil-scm.org/ -R myfossilclone_canonical.fossil
                    Bytes      Cards  Artifacts     Deltas
    Sent:             177          2          0          0
    Received:        2286         49          0          0
    291 bytes sent, 0 bytes received
    377 bytes received, 0 bytes sent
    291 bytes sent
    377 bytes received
    Total network traffic: 291 bytes sent, 0 bytes received
    </pre>