From: Steinar H. Gunderson Date: Tue, 25 Feb 2020 22:02:49 +0000 (+0100) Subject: Log a warning when we kill a client that is not keeping up. X-Git-Tag: 1.9.2~26 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=2cb648106d32b9968f2026536fbead096308c7d1 Log a warning when we kill a client that is not keeping up. --- 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();