Hello polipo users,

Firstly, I would like to have a short introduction, a friend recommended I
try out polipo, since I had mentioned to him I was using squid to help save
some bandwidth, he forwarded me onto polipo, which was more more suited for
my setup (single user) and also lot lighter weight. I am however a Windows
user,  and not a fan of cygwin and prefer a native solution, and found
someone had made one.

The two shortcomings of it was the requirement of specifying paths starting
at the root so / which on Windows can translated to the the Drive letter of
the current working directory. I liked keeping polipo in a folder /
self-contained so used the drive association trick using "SUBST P:
D:\Programs\Polipo", so I could run for P drive then all the settings are on
P. Eventually got some free time and decided to work patching polipo so it
works nicer with Window Paths.

To date there are only 3 patches
1) Patch to use resolve.conf in the current working directory instead
/etc/resolve.conf

I didn't really have a reason for this as I specific the dnsServer in the
config file instead, was more to make it be quite, and just incase someone
prefers resolve.conf on Windows.

2) Changed disk cache to use a constants for defining the FILE_SEPARATOR
used so Windows now uses \ instead.

That is the path checks will now search for \ instead of /

Additionally on windows the relative paths for specific the disk cache root
will be converted to full paths, and finally the check to ensure the path is
from root has been disabled for it.


3) localDocumentRoot now does the same as the diskCacheRoot so it converts
to absolute and doesn't require starting from / on Windows.

I am not sure why exactly the full path are required, but I decided it would
be better to play it safe and enforce converting relative paths to absolute
on Windows.


Source is located at: git://gitorious.org/polipo/polipo-win.git
Binary is located here for now: 
http://users.on.net/~donno/polipo-win_0.1.zip

Known Issue:
I have experienced crashes with this when the cache gets full,
Specially:
Program received signal SIGSEGV, Segmentation fault.
destroyDiskEntry (object=0x2de40, d=0) at diskcache.c:1492
1492            entry->previous->next = entry->next;

I have to look into this at some stage, I have been using a trick to
overcome this by having a :) while true, run polipo in a Batch Script so
when it crashes i click close [ie don't report] and then it restarts polipo
for me.

I hope that this will be useful to someone

Sean Donnellan, Software Engineer Undergraduate



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to