[cups.bugs] [LOW] STR #2920: Initialise resolver after failure in cups-polld

twaugh.redhat twaugh at redhat.com
Wed Sep 3 07:21:36 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

When cups-polld has started, it may fail to resolve the required hostname
because the network interface is not yet up.

On Linux (and perhaps other operating systems), hostname resolution
failures are cached.  When the network interface becomes available,
getaddrinfo() remembers the previous failure and returns without querying
the name server.

Here is a patch to reinit the resolver if we haven't yet resolved the
hostname.

Link: http://www.cups.org/str.php?L2920
Version: 1.3.8
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-res_init.patch
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20080903/0ecea673/attachment.ksh>


More information about the cups-devel mailing list