diff options
author | dormando <dormando@rydia.net> | 2022-04-06 16:59:18 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-04-08 13:19:26 -0700 |
commit | 43a5d6832bce062587c9c088797f0eec46c1ded8 (patch) | |
tree | dc38f8278bb90a63a0d00e9fdb7da139565b97dd /proxy.h | |
parent | 88e7960d21865d48f68b2463515dedde66cd9ae8 (diff) | |
download | memcached-43a5d6832bce062587c9c088797f0eec46c1ded8.tar.gz |
proxy: replace proxycmds stream with proxyreqs
delete the magic logging and require mcp.log_req* be used if you want
those types of entries to appear. keeps a separate data stream from
"proxyuser" just in case that's useful.
proxycmds wasn't able to get enough context to autogenerate useful log
lines, so I'd rather not have it in there at all.
Diffstat (limited to 'proxy.h')
-rw-r--r-- | proxy.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -364,12 +364,11 @@ enum mcp_resp_mode { #define RESP_CMD_MAX 8 typedef struct { mcmc_resp_t resp; - struct timeval start; // start time inherited from paired request char *buf; // response line + potentially value. size_t blen; // total size of the value to read. int status; // status code from mcmc_read() 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. + uint8_t cmd; // from parser (pr.command) enum mcp_resp_mode mode; // reply mode (for noreply fixing) char be_name[MAX_NAMELEN+1]; char be_port[MAX_PORTLEN+1]; |