found 448092 1.6.1 thanks On Mon, 29 Oct 2007, Mark Hindley wrote:
Hi, > > I am glad daemon mode works. I really do recommend that you use it: it > is far more efficient. I am considering deprecating CGI mode! I use apt-cacher mainly for caching packages for pbuilder and CGI mode was quite efficient for this purpose. But now it doesn't work - apt-cacher corrupts last downloaded file by appending some header data to it. > > However, it would be good to sort this out. > > The fact that daemon mode works confirms my suspicion that it is something to > do with your > apache2 setup. I think the problem is with apt-cacher: [13]/tmp/w> URL="http://localhost/apt-cacher/ftp.debian.org/debian/dists/unstable/" [14]/tmp/w> wget $URL/Release.gpg $URL/Release --19:04:31-- http://localhost/apt-cacher/ftp.debian.org/debian/dists/unstable//Release.gpg => `Release.gpg' Resolving localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 189 [text/plain] 100%[==========================================================>] 189 --.--K/s 19:04:32 (11.59 MB/s) - `Release.gpg' saved [189/189] --19:04:32-- http://localhost/apt-cacher/ftp.debian.org/debian/dists/unstable//Release => `Release' Reusing existing connection to localhost:80. HTTP request sent, awaiting response... 200 No headers, assuming HTTP/0.9 Length: unspecified [ <=> ] 81,157 --.--K/s 19:04:47 (5.33 KB/s) - `Release' saved [81157] FINISHED --19:04:47-- Downloaded: 81,346 bytes in 2 files [15]/tmp/w> tail -n 6 Release 396446aad71572ec763429cfcf74aacfa847f371caeefeaaae6f5f15482261aa 1386 non-free/debian-installer/binary-sparc/Packages.bz2 Status: 400 No Request Recieved Connection: Keep-Alive Accept-Ranges: bytes Keep-Alive: timeout=15, max=100 As you can see apt-cacher added "Status: 400 No Request Recieved" with the 3 following lines to a downloaded data. (Sometimes you need to repeat the above wget command to reproduce the bug). The following patch fixes the bug for me: --- apt-cacher.old 2008-01-13 18:37:52.000000000 +0100 +++ apt-cacher 2008-01-13 18:38:33.000000000 +0100 @@ -358,8 +358,9 @@ debug_message("got: $_"); if (!defined($_)) { - &sendrsp(400, 'No Request Recieved'); - exit(4); + #&sendrsp(400, 'No Request Recieved'); + #exit(4); + exit(0); } if(/^$/) { Regards, robert -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]