> If you try my steps below, It showes that polipo take the file size as
> > Content-Length.
>
> > The partial cache file without Content-Length is not easy to
> > reproduce, so I can give a trace.
>
> Please do, I'll be grateful.  It definitely looks like you've found a bug.
>
What kind of trace? Network trace (tcpdump) or a polipo debug log.

I can't do tcpdump for days to catch what happens. So far, I don't have a
reliable way to reproduce it.
But I do find it happen.

If you want a debug log when you do have such a partial cache, I can do
that.

As you agree, a crash can create such a partial cache file. This small
change will address it. Can you point out a drawback? except it may through
away some useful cache. The problem here is, once such partial cache is
written, it won't go away unless you flush the cache to trough everything
away if you don't know where to find the offending one.


> > My disk for the cache is of 100+ gigs, so out of disk space is not the
> > issue.
>
> Polipo is supposed to react gracefully to error conditions, so unless
> you're using a buggy filesystem (cough ext4 cough) and your system
> crashes, there should be no cache corruption in this case.
>

I use FreeBSD, not Linux.

>
> > Such partial file without Content-Length do not happen often.
>
> They do happen whenever you interrupt a large download that is going
> through Polipo, or view streaming video using Polipo.  While this might
> not be what *you* use Polipo for, I believe it is an important use case.
>

I find such file on .css file as well as java script. As I stated earlier,
the cache that leading me into this is a java script cache.

>
>                                        Juliusz
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to