Does the curl plugin actually pay attention to .curlrc ? #1648
-
Does the curl plugin actually read the parameters from /var/lib/mpd/.curlrc and if yes, does it log it´s actions? While the documentation documentation (https://mpd.readthedocs.io/en/stable/plugins.html#input-plugins) states "... general curl configuration from environment variables such as http_proxy or specified in ~/.curlrc will be in effect." it appears .curlrc is silently ignored. I have in my .curlrc retry 5 and retry-all-errors to enforce a reconnect when a live stream drops it´s tcp connection (curls default is not reconnect) but apparently no reconnect is ever attempted (and mpd logs it´s well known dreaded "playing silence to avoid xrun" forever, or a stop and start which reconnects immidiately). Are there any proven workarounds to reconnect to a stream? I´m courious to know how others may have attempted to solve this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
As far as I can tell MPD does set the
Line 43 in dda0dfc |
Beta Was this translation helpful? Give feedback.
-
Yes, contrary to what the documentation says, .curlrc is apparently not read by the curl plugin. |
Beta Was this translation helpful? Give feedback.
As far as I can tell
.curlrc
is only read by the curl command line tool but not bylibcurl
.MPD does set the
.netrc
option toCURL_NETRC_OPTIONAL
, but it is limited to user name and password:CURLOPT_NETRC
MPD/src/lib/curl/Setup.cxx
Line 43 in dda0dfc