[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers-public] hgweb provides a broken file when trying t
From: |
Assaf Gordon |
Subject: |
Re: [Savannah-hackers-public] hgweb provides a broken file when trying to download an archive |
Date: |
Wed, 8 Feb 2017 22:56:32 -0500 |
Follow-up:
> On Feb 8, 2017, at 22:31, Assaf Gordon <address@hidden> wrote:
>
> Few more observations:
>
> These consistently fail (truncated file):
> http://hg.savannah.gnu.org/hgweb/octave/archive/tip.tar.bz2
> http://hg.savannah.gnu.org/hgweb/octave/archive/tip.tar.gz
>
> While this consistently succeeds:
> http://hg.savannah.gnu.org/hgweb/octave/archive/tip.zip
If the files are truncated, they are truncated by just a tiny little bit.
When I create an archives locally, they have very similar sizes:
locally on vcs0 (these archives are not truncated):
cd /srv/hg/octave
hg archive -r tip /tmp/tip.tar.gz
hg archive -r tip /tmp/tip.tar.bz2
hg archive -r tip /tmp/tip.zip
$ ls -log /tmp/tip.*
-rw-rw-r-- 1 5299911 Feb 8 22:51 /tmp/tip.tar.bz2
-rw-rw-r-- 1 6570179 Feb 8 22:51 /tmp/tip.tar.gz
-rw-rw-r-- 1 8971416 Feb 8 22:52 /tmp/tip.zip
and over the web:
wget http://hg.savannah.gnu.org/hgweb/octave/archive/tip.tar.gz
wget http://hg.savannah.gnu.org/hgweb/octave/archive/tip.tar.bz2
wget http://hg.savannah.gnu.org/hgweb/octave/archive/tip.zip
$ ls -log tip.*
-rw-r--r-- 1 5319138 Feb 8 22:52 tip.tar.bz2
-rw-r--r-- 1 6596892 Feb 8 22:52 tip.tar.gz
-rw-r--r-- 1 9099805 Feb 8 22:53 tip.zip
Note the file sizes are not expected to be equal, because in the web version
the subdirectory is 'octave-ac76a90f17ff' while in the local version it is
simply 'tip'.
But the truncation is very small.
So perhaps it's an nginx/fastcgi/wsgi/python problem ?
to be continued...
- assaf