Re: polipo cache update delay

Aaron Swartz <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
[Apologies for the delay in getting back to you.]

>> I've noticed that if I download a page thru Polipo and then
>> immediately try to redownload it, it will hit the server again. If I
>> wait a while however and try to download the page, Polipo serves it
>> from the cache.
>
> That's definitely not normal.  Could you please generate a trace ?
>
> If you're under Linux, run
>
>  strace -o log.text -s 10000 polipo
>
> and then put the ``log.text'' file on the web somewhere.

The log is at

http://static.theinfo.org/tmp/polipo.log.out

In one terminal I ran:

$ rm -rf ~/env/cache/polipo/*
$ strace -o log.text -s 10000 polipo socksParentProxy="localhost:9050"
localDocumentRoot="" diskCacheRoot=~/env/cache/polipo
Established listening socket on port 8123.

While in the other:

$ time curl -H "Pragma: " -s -x localhost:8123
http://duskgytldkxiuqc6.onion/fedpapers/federa35.htm>/dev/null

real	0m7.760s
user	0m0.000s
sys	0m0.000s
$ sleep 5
$ time curl -H "Pragma: " -s -x localhost:8123
http://duskgytldkxiuqc6.onion/fedpapers/federa35.htm>/dev/null

real	0m6.771s
user	0m0.000s
sys	0m0.004s
$ sleep 60
$ time curl -H "Pragma: " -s -x localhost:8123
http://duskgytldkxiuqc6.onion/fedpapers/federa35.htm>/dev/null

real	0m0.013s
user	0m0.000s
sys	0m0.012s

I've also been able to reproduce it on FreeBSD; I can give you kdump
files if you want.

Thanks so much for your help with this!

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.