@cryptotaxi247 / netdata-1 / commits / 51fe106e6

removed error log that is triggered under normal conditions when the request is too big; fixes #1129

Costa Tsaousis (ktsaou) committed Dec 8, 2016 at 22:02 UTC 51fe106e6ac2a1588e6b59d15c79d78c153bb03a
2 files changed +2 -2
src/web_client.c
+1 -1
@@ -416,7 +416,7 @@ int mysendfile(struct web_client *w, char *filename)
416 #ifdef NETDATA_WITH_ZLIB
417 void web_client_enable_deflate(struct web_client *w, int gzip) {
418 if(unlikely(w->response.zinitialized)) {
419 - error("%llu: Compression has already be initialized for this client.", w->id);
419 + debug(D_DEFLATE, "%llu: Compression has already be initialized for this client.", w->id);
420 return;
421 }
422
src/web_client.h
+1 -1
@@ -34,7 +34,7 @@ struct response {
34 Bytef zbuffer[ZLIB_CHUNK]; // temporary buffer for storing compressed output
35 size_t zsent; // the compressed bytes we have sent to the client
36 size_t zhave; // the compressed bytes that we have received from zlib
37 - int zinitialized;
37 + int zinitialized:1;
38 #endif /* NETDATA_WITH_ZLIB */
39
40 };