From 947e902288d5436c62214c509fda81708815b3d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Jun 2015 16:45:38 +0200 Subject: input/curl: trigger the condition variable in RequestDone() Fixes deadlock on small responses. --- NEWS | 1 + src/input/plugins/CurlInputPlugin.cxx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index e5cc2e540..4d92cd3e1 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ ver 0.19.10 (not yet released) * input + - curl: fix deadlock on small responses - smbclient: fix DFF playback * encoder - opus: fix bogus granulepos diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index abb7e312c..3aa3b0018 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -453,6 +453,8 @@ CurlInputStream::RequestDone(CURLcode result, long status) SeekDone(); else if (!IsReady()) SetReady(); + else + cond.broadcast(); } static void -- cgit v1.2.3