From 2cb648106d32b9968f2026536fbead096308c7d1 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 25 Feb 2020 23:02:49 +0100 Subject: [PATCH] Log a warning when we kill a client that is not keeping up. --- shared/httpd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/httpd.cpp b/shared/httpd.cpp index a881919..09c0656 100644 --- a/shared/httpd.cpp +++ b/shared/httpd.cpp @@ -260,6 +260,7 @@ void HTTPD::Stream::add_data(const char *buf, size_t buf_size, HTTPD::Stream::Da // so kill it instead of going out of memory. Note that this // won't kill the client immediately, but will cause the next callback // to kill the client. + fprintf(stderr, "HTTP client had more than 1 GB backlog; killing.\n"); should_quit = true; buffered_data.clear(); has_buffered_data.notify_all(); -- 2.39.2