diff options
author | dormando <dormando@rydia.net> | 2022-04-01 18:32:24 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-04-08 13:19:26 -0700 |
commit | 88e7960d21865d48f68b2463515dedde66cd9ae8 (patch) | |
tree | 4d5383e44b87b446a761ff5744c44b6440401d3c /proxy.h | |
parent | 046c4bb5d8498420c13e5357c8299b60952b2595 (diff) | |
download | memcached-88e7960d21865d48f68b2463515dedde66cd9ae8.tar.gz |
proxy: mcp.log_req* API interface
Lua level API for logging full context of a request/response. Provides
log_req() for simple logging and log_reqsample() for conditional
logging.
Diffstat (limited to 'proxy.h')
-rw-r--r-- | proxy.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -371,6 +371,8 @@ typedef struct { int bread; // amount of bytes read into value so far. char cmd[RESP_CMD_MAX+1]; // until we can reverse CMD_*'s to strings directly. enum mcp_resp_mode mode; // reply mode (for noreply fixing) + char be_name[MAX_NAMELEN+1]; + char be_port[MAX_PORTLEN+1]; } mcp_resp_t; // re-cast an io_pending_t into this more descriptive structure. |