Skip to content

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

Open

Description

@mzimbres

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions