From 68fcc195657fa31b47bc9504286a9b31feda92dc Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 4 Jan 2014 17:42:03 +0100 Subject: output/httpd: move queue size check to HttpdClient::PushPage() Don't let the server care for client problems. --- src/output/HttpdOutputPlugin.cxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/output/HttpdOutputPlugin.cxx') diff --git a/src/output/HttpdOutputPlugin.cxx b/src/output/HttpdOutputPlugin.cxx index 63131533a..ea75cb87d 100644 --- a/src/output/HttpdOutputPlugin.cxx +++ b/src/output/HttpdOutputPlugin.cxx @@ -401,16 +401,6 @@ HttpdOutput::BroadcastPage(Page *page) void HttpdOutput::BroadcastFromEncoder() { - mutex.lock(); - for (auto &client : clients) { - if (client.GetQueueSize() > 256 * 1024) { - FormatDebug(httpd_output_domain, - "client is too slow, flushing its queue"); - client.CancelQueue(); - } - } - mutex.unlock(); - Page *page; while ((page = ReadPage()) != nullptr) { BroadcastPage(page); -- cgit v1.2.3