X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fhttpd.cpp;fp=shared%2Fhttpd.cpp;h=09c065693f005dbcd137b95f1ade099f387a27e5;hb=2cb648106d32b9968f2026536fbead096308c7d1;hp=a881919cace1abd5e2399a192f60416f39ac6dc7;hpb=731424ea25080a11a0b687f5cdb0007ca82c6050;p=nageru 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();