inevity / cacheboy

Automatically exported from code.google.com/p/cacheboy
0 stars 0 forks source link

Weird HIT delayed ??? #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Guys 

Check the below criteria while retrieving locally HIT files from Cache 
using Cacheboy-1.5.2 on FreeBSD 7.1 
check that this is only an 11M file stored locally on CacheBoy  yet it is
delayed for no reason ... and the squid process doesn't say anything in the
cache.log .....

Regards

fetching
http://au.download.windowsupdate.com/msdownload/update/driver/drvs/2008/02/20102
369_4c2a23f1983ce0ef9f936659679490326992f8bc.cab
--2008-12-03 09:48:41-- 
http://au.download.windowsupdate.com/msdownload/update/driver/drvs/2008/02/20102
369_4c2a23f1983ce0ef9f936659679490326992f8bc.cab
Connecting to 127.0.0.1:3128... connected.
Proxy request sent, awaiting response...
  HTTP/1.0 200 OK
  Date: Fri, 28 Nov 2008 10:34:21 GMT
  Content-Length: 11969534
  Content-Type: application/octet-stream
  ETag: "808957a6fc6dc81:369"
  Last-Modified: Wed, 13 Feb 2008 04:55:27 GMT
  Accept-Ranges: bytes
  Server: Microsoft-IIS/6.0
  X-Powered-By: ASP.NET
  Age: 422060
  X-Cache: HIT from CBSD-Ubi.comnet.net.lb
  Via: 1.1 CBSD-Ubi.comnet.net.lb:3128 (Cacheboy/CACHEBOY_1.5.2)
  Connection: close
Length: 11969534 (11M) [application/octet-stream]
Saving to: `20102369_4c2a23f1983ce0ef9f936659679490326992f8bc.cab'

 0% [>                                                                    
                                               ] 102,400     --.-K/s  eta
2h 16m

Original issue reported on code.google.com by degreane@gmail.com on 3 Dec 2008 at 7:54

GoogleCodeExporter commented 9 years ago
Wait a second. How's that work? Do you have some kind of rewriter rules going 
on there, or are you using 
collapsed forwarding at all?

Original comment by adrian.c...@gmail.com on 5 Dec 2008 at 4:37

GoogleCodeExporter commented 9 years ago
collapsed forwarding is set to off 
I am using storeurl_rewrite_program with the following 
#!/usr/bin/perl

  use IO::File;
  use IO::Socket::INET;
  use IO::Pipe;

  $| = 1;

while (<>) {
        @X=split;
        $url = $X[0];
        $url
=~s@^http://(.*?)/get_video\?(.*)video_id=(.*?)&.*@squid://videos.youtube.INTERN
AL/ID=$3@;
        $url
=~s@^http://(.*?)/get_video\?(.*)video_id=(.*?)$@squid://videos.youtube.INTERNAL
/ID=$3@;
        $url
=~s@^http://(.*?)/videodownload\?(.*)docid=(.*?)$@squid://videos.google.INTERNAL
/ID=$3@;
        $url
=~s@^http://(.*?)/videodownload\?(.*)docid=(.*?)&.*@squid://videos.google.INTERN
AL/ID=$3@;
        #pornhub shit
        $url
=~s@^http://(.*?)pornhub.com/dl/(.*?)/videos/(.*?)/(.*?)/(.*?)/(.*?)flv$@squid:/
/pornhub.com/dl/INTERNAL/ID=$6flv@;
        $url
=~s@^http://(.*?)pornhub.com/dl/(.*?)/videos/(.*?)/(.*?)/(.*?)/(.*?)flv\?@squid:
//pornhub.com/dl/INTERNAL/ID=$6flv@;
        #tube8 shit stuff
        $url
=~s@^http://(.*?)tube8.com/flv/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)flv$@squid://t
ube8.com/flv/INTERNAL/ID=$6flv@;
        $url
=~s@^http://(.*?)tube8.com/flv/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)/(.*?)flv\?@squid://
tube8.com/flv/INTERNAL/ID=$6flv@;

  print "$url\n";

}

which has nothing to do with msdownloads ....

Regards

Original comment by degreane@gmail.com on 9 Dec 2008 at 2:12

GoogleCodeExporter commented 9 years ago
Do you have collapsed_forwarding on?

Original comment by adrian.c...@gmail.com on 25 Dec 2008 at 7:33

GoogleCodeExporter commented 9 years ago
I've just tried this, it works fine for me.

Can you please post the config file (minus the comments!) so I can compare?

Also, do you keep statistics on traffic and CPU usage?

Original comment by adrian.c...@gmail.com on 30 Dec 2008 at 8:54

GoogleCodeExporter commented 9 years ago
no collapsed forwarding is off 
i removed Cache_boy and installed squid2.7 Stable 5 it works fine 

Regards

Original comment by degreane@gmail.com on 31 Dec 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Well, could you try the latest Squid-2.HEAD snapshot and let me know?

It could be a bug in cacheboy, but it could also be a bug in Squid-2.HEAD as 
well and I'd obviously like to fix 
that too. :)

Original comment by adrian.c...@gmail.com on 31 Dec 2008 at 2:37