summaryrefslogtreecommitdiff
path: root/proxy_internal.c
Commit message (Collapse)AuthorAgeFilesLines
* proxy: send CLIENT_ERROR when necessarystagingdormando2023-04-031-1/+1
| | | | | A few code paths were returning SERVER_ERROR (a retryable error) when it should have been CLIENT_ERROR (bad protocol syntax).
* meta: N flag changes append/prepend. ms s flag.dormando2023-03-111-6/+28
| | | | | | | | | Sending 's' flag to metaset now returns the size of the item stored. Useful if you want to know how large an append/prepended item now is. If the 'N' flag is supplied while in append/prepend mode, allows autovivifying (with exptime supplied from N) for append/prepend style keys that don't need headers created first.
* core: disable some dtracesdormando2023-03-081-1/+1
| | | | | | | | No longer have access to the client object there. I need to rewire things and honestly not sure if anyone even uses the traces anymore. Will make a decision on deleting or updating them soon; if you read this and care please reach out.
* proxy: mcp.internal fixes and testsdormando2023-03-061-2/+6
| | | | | | | | | | | - 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.
* proxy: add mcp.internal(r) APIdormando2023-02-251-0/+1694
local res = mcp.internal(r) - takes a request object and executes it against the proxy's internal cache instance. Experimental as of this commit. Needs more test coverage and benchmarking.