diff options
author | dormando <dormando@rydia.net> | 2023-03-06 15:21:39 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-03-06 18:10:21 -0800 |
commit | dead60dd43d1b7213ac046d237920eff44b3f68b (patch) | |
tree | b514f6f6cd99325b49c7ddb71ce710eed3dc786e /proto_proxy.c | |
parent | 9e740a9abbe72f49bef026c85464f68e0e46757c (diff) | |
download | memcached-dead60dd43d1b7213ac046d237920eff44b3f68b.tar.gz |
proxy: mcp.internal fixes and tests
- Refcount leak on sets
- Move the response elapsed timer back closer to when the response was
processed as to not clobber the wrong IO object data
- Restores error messages from set/ms
- Adds start of unit tests
Requests will look like they run a tiiiiny bit faster than they do, but
I need to get the elapsed time there for a later change.
Diffstat (limited to 'proto_proxy.c')
-rw-r--r-- | proto_proxy.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/proto_proxy.c b/proto_proxy.c index 748ff12..f70d666 100644 --- a/proto_proxy.c +++ b/proto_proxy.c @@ -290,14 +290,8 @@ void proxy_return_cb(io_pending_t *pending) { if (p->is_await) { mcplib_await_return(p); } else { - struct timeval end; lua_State *Lc = p->coro; - // stamp the elapsed time into the response object. - gettimeofday(&end, NULL); - p->client_resp->elapsed = (end.tv_sec - p->client_resp->start.tv_sec) * 1000000 + - (end.tv_usec - p->client_resp->start.tv_usec); - // in order to resume we need to remove the objects that were // originally returned // what's currently on the top of the stack is what we want to keep. |