• Max Kellermann's avatar
    input/curl: fix bug with redirected streams · 01891f88
    Max Kellermann authored
    Migrate from the old curl_multi_perform() API to the newer
    curl_multi_socket_action() API (since CURL 7.16).
    
    This allows working around a bug with HTTP redirections with epoll:
    when CURL closes a socket and the new one happens to have the same
    file number, MPD did not have a chance to remove the old one from
    epoll and subsequently attempted to use EPOLL_CTL_MOD, which was not
    allowed by epoll, because it's a new socket now.
    01891f88
CurlInputPlugin.cxx 23.7 KB