Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389675

Summary: net-proxy/polipo-1.0.4.1 reports timeout for domains that are available
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Gentoo Network Proxy Developers (OBSOLETE) <net-proxy+disabled>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://bugs.debian.org/540912
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
polipo-1.0.4.1-dns.patch

Description Andrew Savchenko gentoo-dev 2011-11-05 20:19:39 UTC
Hello,

For some sites (like bits.wikimedia.org, kernel.org or google.ru, list will depend on your DNS server and its settings), polipo returns Error 504 Timeout while site itself is running and accessible via any browser without a proxy.

After some investigation it was found, that when polipo receives DNS answer telling that AAAA record does not exist before receiving answer for A record with CNAMEs, it results in timeout.

Excatly the same problem and solution to it is available on Debian bugzilla:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=540912
Comment 1 Andrew Savchenko gentoo-dev 2011-11-05 20:20:08 UTC
Created attachment 291773 [details]
emerge --info
Comment 2 Andrew Savchenko gentoo-dev 2011-11-05 20:21:49 UTC
Created attachment 291775 [details, diff]
polipo-1.0.4.1-dns.patch

Patch from Debian bug #540912 by Stepan Golosunov fixes this problem for me.
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-02 19:46:05 UTC
+  02 May 2013; Tom Wijsman <TomWij@gentoo.org>
+  +files/polipo-1.0.4.1-dns-timeout-fix.patch, +polipo-1.0.4.1-r2.ebuild:
+  EAPI 5. Fix incorrect timeout reporting for domains that are available,
+  revision bump. Thanks to Andrew Savchenko for reporting. Fixes bug #389675.