[Pianod] New error just crept up

Jimmy Pop jimmypopali96 at gmail.com
Tue Jul 16 21:17:56 PDT 2013


Added to the console now is this output:

getaddrinfo error: Name or service not known



On Tue, Jul 16, 2013 at 5:30 PM, Peter Li <chinasaurli at gmail.com> wrote:

>  Hmm, okay try this patch for waitress.c:
>
>   /* Use proxy? */
>   int gairet;
>   if (WaitressProxyEnabled (waith)) {
>     gairet = getaddrinfo (waith->proxy.host,
>         WaitressDefaultPort (&waith->proxy), &hints, &res);
>   } else {
>     gairet = getaddrinfo (waith->url.host,
>         WaitressDefaultPort (&waith->url), &hints, &res);
>   }
>
>   if (gairet != 0) {
>     fprintf (stderr, "getaddrinfo error: %s\n", gai_strerror (gairet));
>     return WAITRESS_RET_GETADDR_ERR;
>   }
>
> Instead of the previous block starting
>   /* Use proxy? */
>   if (WaitressProxyEnabled (waith)) {
>     ...
>   }
>
> Then let us know what you get printed out when you hit the Pandora
> connection error.  See below if you prefer patch format.
> P
>
> --- src/libwaitress/waitress.c    (revision 148)
> +++ src/libwaitress/waitress.c    (working copy)
> @@ -779,16 +779,18 @@
>      hints.ai_socktype = SOCK_STREAM;
>
>      /* Use proxy? */
> +  int gairet;
>      if (WaitressProxyEnabled (waith)) {
> -        if (getaddrinfo (waith->proxy.host,
> -                WaitressDefaultPort (&waith->proxy), &hints, &res) != 0) {
> -            return WAITRESS_RET_GETADDR_ERR;
> -        }
> +    gairet = getaddrinfo (waith->proxy.host,
> +                WaitressDefaultPort (&waith->proxy), &hints, &res);
>      } else {
> -        if (getaddrinfo (waith->url.host,
> -                WaitressDefaultPort (&waith->url), &hints, &res) != 0) {
> -            return WAITRESS_RET_GETADDR_ERR;
> -        }
> +      gairet = getaddrinfo (waith->url.host,
> +                WaitressDefaultPort (&waith->url), &hints, &res);
> +  }
> +
> +    if (gairet != 0) {
> +    fprintf (stderr, "getaddrinfo error: %s\n", gai_strerror (gairet));
> +        return WAITRESS_RET_GETADDR_ERR;
>      }
>
>      if ((waith->request.sockfd = socket (res->ai_family, res->ai_socktype,
>
>
>
>
>
> On 07/16/2013 04:42 PM, Jimmy Pop wrote:
>
> I am running it from a terminal session.
> The stack is definitely ready. Running pianobar returns no errors and
> runs perfectly.
>
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130716/8eeb7f4f/attachment-0003.htm>


More information about the Pianod mailing list