Code

The buffer length for command buffers should be controlled by a single
[rrdtool.git] / src / rrd_client.h
index e203d7ca9748f43d7602ad4f0a0d58c13fcfb726..681397dd571480b2087a09e64da7b802392edb93 100644 (file)
@@ -49,6 +49,8 @@
        typedef unsigned long long int  uint64_t;
 #endif
 
+/* max length of socket command or response */
+#define RRD_CMD_MAX 4096
 
 #ifndef RRDCACHED_DEFAULT_ADDRESS
 # define RRDCACHED_DEFAULT_ADDRESS "unix:/tmp/rrdcached.sock"