[Pianod] New error just crept up
Peter Li
chinasaurli at gmail.com
Tue Jul 16 17:30:16 PDT 2013
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130716/81e4de81/attachment-0003.htm>
More information about the Pianod
mailing list