input/curl: fix bug with redirected streams

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.
This commit is contained in:
Max Kellermann
2013-11-06 19:01:50 +01:00
parent adb68450ce
commit 01891f8815
2 changed files with 141 additions and 111 deletions

2
NEWS
View File

@@ -1,4 +1,6 @@
ver 0.18.2 (2013/??/??)
* input:
- curl: fix bug with redirected streams
* playlist:
- pls: fix reversed song order
* decoder: