Hi,

I am having problems with polipo on OpenWrt (BARRIER BREAKER, r41777),
there's no disk cache, even though I've configured one (?)correctly.
 Oddly, the disk cache option shows up configured on polipo's own config
web page, but not when I execute *polipo -*v !!

I am sure that I am doing something simple wrong, but for the life of me I
can't see what it is!!

Here is some info if you've got the time to help (polipo configured via the
UCI):
  root@db-router:/etc/init.d# */etc/init.d/polipo start*
  root@db-router:/etc/init.d# *ps -w | grep polipo*
  22985 root      1184 S    /usr/sbin/polipo -c /var/etc/polipo.conf

and then:
  root@db-router:/etc/init.d# *cat /var/etc/polipo.conf*
  ### AUTOGENERATED CONFIGURATION
  ### DO NOT EDIT
  ### SEE /etc/config/polipo INSTEAD
  ### SECTION daemon
  pidFile = "/var/run/polipo.pid"
  daemonise = true
  ### SECTION general
  proxyAddress = "0.0.0.0"
  dnsQueryIPv6 = false
  dnsUseGethostbyname = false
  disableIndexing = false
  disableServersList = false
  logSyslog = true
  allowedClients = "127.0.0.1", "172.27.0.0/24"
  ### SECTION cache
  ### SECTION pmm
  ### VALUES THAT ARE DISABLED WHEN EMPTY
  diskCacheRoot = "/opt/var/cache/polipo"
  logFile = "/opt/var/cache/polipo/polipo.log"
  localDocumentRoot = ""

Note that I've (cunningly) put the log file in the same location as the
cache to confirm that polipo can access the directory OK (which it can):
  root@db-router:/etc/init.d# */etc/init.d/polipo stop; rm
/opt/var/cache/polipo/po**lipo.log*
  root@db-router:/etc/init.d# */etc/init.d/polipo start; cat
/opt/var/cache/polipo*
  Established listening socket on port 8123.

However (!):
  root@db-router:*/etc/init.d# polipo -v | grep -i cache*
  Disabling disk cache: No such file or directory
  Disabling local tree: No such file or directory
  cacheIsShared boolean true If false, ignore s-maxage and private.
  disableIndexing boolean true Disable indexing of the local cache.
  diskCacheDirectoryPermissions integer 0700 Access rights for new
directories.
  diskCacheFilePermissions integer 0600 Access rights for new cache files.
  diskCacheRoot atom (none) Root of the disk cache.
  diskCacheTruncateSize integer 1048576 Size to which on-disk objects are
truncated.
  diskCacheTruncateTime time 4d12h Time after which on-disk objects are
truncated.
  diskCacheUnlinkTime time 32d Time after which on-disk objects are removed.
  diskCacheWriteoutOnClose integer 65536 Number of bytes to write out
eagerly.
  dontCacheCookies boolean false Work around cachable cookies.
  dontCacheRedirects boolean false If true, don't cache redirects.
  maxDiskCacheEntrySize integer -1 Maximum size of objects cached on disk.
  maxDiskEntries integer 32 File descriptors used by the on-disk cache.
  mindlesslyCacheVary boolean false If true, mindlessly cache negotiated
objects.

(Oddly) I note that the diskCacheRoot shows up as /opt/var/cache/polipo/ in
the http://172.27.0.1:8123/polipo/config? web page!!

Any ideas what I'm doing wrong? If I try:
  root@db-router:/etc/init.d# *polipo -c /var/etc/polipo.conf
diskCacheRoot="/opt/var/cache/polipo"*

I get exactly the same result, INCLUDING the diskCacheRoot option showing
as "/opt/var/cache/polipo" in the config we page, however if I execute
(where XXX does not exist):
  root@db-router:/etc/init.d# *polipo -c /var/etc/polipo.conf
diskCacheRoot="/opt/var/cache/XXX"*

Then I get the expected behaviour: the diskCacheRoot option in the config
web page is blank (and everything else is the same).

-Dave
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to