[Apt-cacher-ng-users] Avoid client timeout while the proxy (alioth-apt-cacher-ng: message 9 of 20) (alioth-apt-cacher-ng: message 6 of 20) retrieves a large file

Wade alioth-apt-cacher-ng.20.apex3 at xoxy.net
Sat Jan 14 01:18:18 UTC 2012


> To reproduce the behaviour you mentioned, the file should ideally be
> larger than 64kb.
I tried it again and was not able to reproduce the problem with a 500K
file using curl.  In this case, it's sending the file to the client
while receiving it from the server.  If I see it again using pacman,
then I'll try to reproduce it there and let you know.


>> PS
>> This is a fantastic project, though, don't get me wrong there.  I love
>> the cache expiration, which is almost perfect with arch linux.  The
>> only problem I have on that front is that it downloads the package
>> indices, but they are renamed from index.db.tar.gz to index.db on
>> disk, and so not read properly.  I got around this by creating a
>> symlink in each cache dir from index.db to index.db.tar.gz and then
>> everything is fantastic.
>
> You mean, it does not pick up the right index files? I think this should
> be fixed ASAP. But I am confused... where exactly shall the files
> be renamed? AFAICS the file names in the archive are index.db.tar.gz,
> and the current code looks for files named like .db.tar (plus optional
> compression suffix .gz/.bz2/.xz/.lzma).

Sorry, it appears that I was mistaken in regard to the index file
request from the packager client.  It actually request, for example
with the 'core' repo, 'core.db'.  This core.db file is a tar.gz file
in fact, but is only name '.db'.  Is there a way to configure the
behaviour to read '.db' files as well (as tar.gz data)?  There is no
renaming happening, that was my mistake.



More information about the Apt-cacher-ng-users mailing list