diff options
author | dormando <dormando@rydia.net> | 2020-06-10 22:56:07 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-10-05 12:21:25 -0700 |
commit | d22b66483bce8843110795609386edc6ebf65b69 (patch) | |
tree | ac2107f9450c857d9ed125a17aef79a4158da7f9 /logger.h | |
parent | 56dc81db316a0b957415e371d20c683fea9d7d2f (diff) | |
download | memcached-d22b66483bce8843110795609386edc6ebf65b69.tar.gz |
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.
Diffstat (limited to 'logger.h')
-rw-r--r-- | logger.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |