redis icon indicating copy to clipboard operation
redis copied to clipboard

Improve error handling when server response can't be accommodated in the response object

Open mzimbres opened this issue 5 months ago • 0 comments

For example

request req;
req.push("ping", "abc");
req.push("ping", "def");

response<std::string> res;

co_await conn.async_exec(req, res);

Allowing internal adapter code is wrong, the library should communicate an error with which the async operation will complete.

Note: This touches only responses with an static size i.e. response<T1, T2, ...> and not the generic_response.

mzimbres avatar Jul 25 '25 19:07 mzimbres