Package: polipo
Version: 1.0.4+58-1
Severity: important
File: /etc/network/if-down.d/01polipo

Regularly when I have a network outage -- such as when I unplug my
laptop to take it to a meeting -- polipo switches to "offline mode",
but when I plug the network back in, it doesn't go back into "online
mode".  This is also the case for long outages on my wifi interface,
such as when I restart my wireless router.

Today I noticed that this is caused by Debian-specific "cleverness"
that polipo installs by default into /etc/network/if-{up,down}.d/; I
can only assume these scripts have not been properly tested with my
kind of network use cases.

Example symptom:

    $ curl -sLI http://fnord.com/ | head -1
    HTTP/1.1 502 Disconnected operation and object not in cache
    $ env -u http_proxy curl -sLI http://fnord.com/ | head -1
    HTTP/1.1 200 OK

This is my /etc/network/interfaces:

    auto lo
    iface lo inet loopback
    allow-hotplug eth0
    iface eth0 inet dhcp
    auto ath0
    iface ath0 inet manual
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
    wpa-roam-default-iface ath0-default
    iface ath0-default inet dhcp

My /etc/polipo/options has not been touched:

    # See the /usr/share/doc/polipo/README.Debian file for details on this file

    method any
    #method static
    #method manual
    #method dhcp
    #method bootp
    #method ppp
    #method wvdial

NetworkManager is *not* installed.

By the way, I suggest you replace

    ( grep -qsxi '^[[:blank:]]*method[[:blank:]]*any[[:blank:]]*$' $OPTION_FILE 
\
    || grep -qsxi '^[[:blank:]]*method[[:blank:]]*$METHOD[[:blank:]]*$' 
$OPTION_FILE )

with

    grep -qsxi 
"^[[:blank:]]*method[[:blank:]]*\\(any\\|$METHOD\\)[[:blank:]]*$' $OPTION_FILE

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages polipo depends on:
ii  libc6                         2.9-4      GNU C Library: Shared libraries

polipo recommends no packages.

polipo suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to