From 4e1470d50f1ece3277dec6c770c5ea74d0db10b7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 9 Nov 2011 19:30:57 +0300 Subject: * Support redis unified protocol. --- src/kvstorage_server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kvstorage_server.h') diff --git a/src/kvstorage_server.h b/src/kvstorage_server.h index 2d4a3fa89..a7c8bd8a6 100644 --- a/src/kvstorage_server.h +++ b/src/kvstorage_server.h @@ -59,6 +59,8 @@ struct kvstorage_session { rspamd_io_dispatcher_t *dispather; enum { KVSTORAGE_STATE_READ_CMD, + KVSTORAGE_STATE_READ_ARGLEN, + KVSTORAGE_STATE_READ_ARG, KVSTORAGE_STATE_READ_DATA } state; enum { @@ -70,6 +72,8 @@ struct kvstorage_session { KVSTORAGE_CMD_QUIT } command; guint id; + guint argc; + guint argnum; memory_pool_t *pool; gchar *key; struct kvstorage_config *cf; -- cgit v1.2.3