Bug#540912: polipo: DNS timeouts on CNAMEs

2010-03-29 Thread Stepan Golosunov
severity 540912 important
tags 540912 patch
thanks

When polipo receives DNS answer telling that  record does not
exist before receiving answer for A record with CNAMEs, it results in
timeout:

Host bits.wikimedia.org has both  and CNAME -- ignoring CNAME.
Host bits.wikimedia.org has both  and CNAME -- ignoring CNAME.
Host bits.wikimedia.org has both  and CNAME -- ignoring CNAME.
Host bits.wikimedia.org has both  and CNAME -- ignoring CNAME.
Host bits.wikimedia.org lookup failed: Timeout (131072).

Wikipedia is recently almost unusable with polipo, as the A record for
bits.wikimedia.org usually times out from local DNS cache about the
same time polipo reports its timeout while negative answer for  is
still here.

The following patch fixes it for me:

--- polipo-1.0.4/dns.c.orig 2008-01-08 16:56:45.0 +0400
+++ polipo-1.0.4/dns.c  2010-03-29 18:28:43.225601510 +0500
@@ -1181,7 +1181,8 @@
 } else
 releaseAtom(value);
 } else if(af == 0) {
-if(query->inet4 || query->inet6) {
+if(query->inet4 && query->inet4->length ||
+  query->inet6 && query->inet6->length) {
 do_log(L_WARN, "Host %s has both %s and CNAME -- "
"ignoring CNAME.\n", query->name->string,
query->inet4 ? "A" : "");
@@ -1207,7 +1208,8 @@
 if(object->flags & OBJECT_INITIAL) {
 assert(!object->headers);
 if(cname) {
-assert(query->inet4 == NULL && query->inet6 == NULL);
+assert(!(query->inet4 && query->inet4->length));
+assert(!(query->inet6 && query->inet6->length));
 object->headers = cname;
 object->expires = current_time.tv_sec + ttl;
 } else if((!query->inet4 || query->inet4->length == 0) &&



-- 
To UNSUBSCRIBE, email to debian-qa-packages-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100329141338.ga21...@sghpc.golosunov.pp.ru



Bug#323820: manpages-ru: Russian man pages are only shown in ru_RU.KOI8-R locale

2005-08-18 Thread Stepan Golosunov
Package: manpages-ru
Version: 0.7d-3
Severity: important
Tags: patch

In ru_RU.UTF-8 and ru_RU.CP1251 locales man mv is shown in English.
Moving man pages from /usr/share/man/ru_RU.KOI8-R/ to /usr/share/man/ru/
solves the problem.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

-- no debconf information
--- debian/rules.orig   2005-08-18 21:28:50.295640240 +0500
+++ debian/rules2005-08-18 21:28:17.134681000 +0500
@@ -21,10 +21,10 @@
dh_installdirs
 
# Add here commands to install the package into debian/.
-   dh_install man? usr/share/man/ru_RU.KOI8-R
+   dh_install man? usr/share/man/ru
 
# Move environ(5) to environ(7).
-   cd debian/manpages-ru/usr/share/man/ru_RU.KOI8-R \
+   cd debian/manpages-ru/usr/share/man/ru \
&& sed '/^\.TH/s/5/7/' man5/environ.5 > man7/environ.7 \
&& rm man5/environ.5
 


Bug#323820: manpages-ru: Russian man pages are only shown in ru_RU.KOI8-R locale

2005-08-18 Thread Stepan Golosunov
On Thu, Aug 18, 2005 at 07:38:11PM +0200, Matej Vela wrote:
> (manpages-ru is currently orphaned, so I'm Cc-ing debian-l10n-russian
> for help.)
> 
> On Thu, Aug 18, 2005 at 10:16:16PM +0500, Stepan Golosunov wrote:
> > Package: manpages-ru
> > Version: 0.7d-3
> > Severity: important
> > Tags: patch
> > 
> > In ru_RU.UTF-8 and ru_RU.CP1251 locales man mv is shown in English.
> > Moving man pages from /usr/share/man/ru_RU.KOI8-R/ to /usr/share/man/ru/
> > solves the problem.
> 
> But they are then shown in the wrong character set, are they not?

They are shown in the right character sets. And /usr/share/man/ru/ is
used, for example, by dpkg and gpg.

> 
> If UTF-8 and CP1251 are widely used, perhaps we should supply pages in
> all three character sets?
> 
> Thanks,
> 
> Matej
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#359995: libghc6-hsql-postgresql-dev: The same on i386

2006-04-07 Thread Stepan Golosunov
Package: libghc6-hsql-postgresql-dev
Version: 1.6-6
Followup-For: Bug #359995

libghc6-hsql-postgresql-dev is also uninstallable on i386:

Настраивается пакет libghc6-hsql-postgresql-dev (1.6-6) ...
Reading package info from stdin ... done.
ghc-pkg: /usr/include/postgresql/8.1/server doesn't exist or isn't a
directory (use --force to override)
dpkg: не удалось обработать параметр libghc6-hsql-postgresql-dev
(--configure):
 подпроцесс post-installation script возвратил код ошибки 1
 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-3-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages libghc6-hsql-postgresql-dev depends on:
ii  ghc6  6.4.1-2.1  GHC - the Glasgow Haskell Compilat
ii  libghc6-hsql-dev  1.6-6  Multi-Database Interface System fo
ii  libpq-dev 8.1.3-3header files for libpq4 (PostgreSQ
ii  postgresql-server-dev-8.0 8.0.7-2development files for PostgreSQL 8

libghc6-hsql-postgresql-dev recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]