mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 07:21:35 +00:00
Close client connection and log the event when the client input buffer reaches 1GB.
This commit is contained in:
@ -40,6 +40,7 @@
|
||||
/* Static server configuration */
|
||||
#define REDIS_SERVERPORT 6379 /* TCP port */
|
||||
#define REDIS_MAXIDLETIME 0 /* default client timeout: infinite */
|
||||
#define REDIS_MAX_QUERYBUF_LEN (1024*1024*1024) /* 1GB max query buffer. */
|
||||
#define REDIS_IOBUF_LEN (1024*16)
|
||||
#define REDIS_LOADBUF_LEN 1024
|
||||
#define REDIS_DEFAULT_DBNUM 16
|
||||
@ -533,6 +534,7 @@ struct redisServer {
|
||||
/* Configuration */
|
||||
int verbosity;
|
||||
int maxidletime;
|
||||
size_t client_max_querybuf_len;
|
||||
int dbnum;
|
||||
int daemonize;
|
||||
int appendonly;
|
||||
@ -765,6 +767,7 @@ void addReplyMultiBulkLen(redisClient *c, long length);
|
||||
void *dupClientReplyValue(void *o);
|
||||
void getClientsMaxBuffers(unsigned long *longest_output_list,
|
||||
unsigned long *biggest_input_buffer);
|
||||
sds getClientInfoString(redisClient *client);
|
||||
void rewriteClientCommandVector(redisClient *c, int argc, ...);
|
||||
void rewriteClientCommandArgument(redisClient *c, int i, robj *newval);
|
||||
|
||||
|
Reference in New Issue
Block a user