From d22b66483bce8843110795609386edc6ebf65b69 Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 10 Jun 2020 22:56:07 -0700 Subject: proxy: initial commit. See BUILD for compilation details. See t/startfile.lua for configuration examples. (see also https://github.com/memcached/memcached-proxylibs for extensions, config libraries, more examples) NOTE: io_uring mode is _not stable_, will crash. As of this commit it is not recommended to run the proxy in production. If you are interested please let us know, as we are actively stabilizing for production use. --- logger.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'logger.h') diff --git a/logger.h b/logger.h index 039f443..6def6f3 100644 --- a/logger.h +++ b/logger.h @@ -31,6 +31,11 @@ enum log_entry_type { LOGGER_COMPACT_END, LOGGER_COMPACT_FRAGINFO, #endif +#ifdef PROXY + LOGGER_PROXY_CONFIG, + LOGGER_PROXY_RAW, + LOGGER_PROXY_ERROR, +#endif }; enum logger_ret_type { @@ -106,7 +111,14 @@ struct logentry_conn_event { int sfd; struct sockaddr_in6 addr; }; - +#ifdef PROXY +struct logentry_proxy_raw { + unsigned short type; + unsigned short code; + long elapsed; // elapsed time in usec + char cmd[8]; +}; +#endif /* end intermediary structures */ /* WARNING: cuddled items aren't compatible with warm restart. more code -- cgit v1.2.1