From 585b68d2ae024a9b0e567d5bb113231d3cdcb346 Mon Sep 17 00:00:00 2001 From: Artem Savkov Date: Thu, 26 Sep 2013 17:25:15 +0200 Subject: input/curl: fix EventLoop stall after curl_easy_pause When playing finite http streams, e.g. something from soundcloud, eventloop stalls after pausing writefunc. TimeoutMonitor is cancelled by the time resume happens, so when enough data is consumed writefunc is called only once. Calling InvalidateSockets() from input_curl_resume() seems to fix the issue. --- src/input/CurlInputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input/CurlInputPlugin.cxx') diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index fb0401fd8..2c99f5c38 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -245,6 +245,7 @@ input_curl_resume(struct input_curl *c) if (c->paused) { c->paused = false; curl_easy_pause(c->easy, CURLPAUSE_CONT); + curl.sockets->InvalidateSockets(); } } -- cgit v1.2.3