Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-445

Raise request_canceled error instead of ambiguous_timeout for HTTP request that receive IO error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.0.0
    • 1.0.0-dp.11
    • None

    Description

      Currently we are raising an ambiguous_timeout if an http request receives an IO error and we need to stop the connection. It would seem that a request_canceled error the is more appropriate response.

      We call stop() if we receive an IO error (code here). And stop() will send an ambiguous_timeout error to the handler (code here):

                  if (ctx.handler) {
                      ctx.handler(errc::common::ambiguous_timeout, {});
                  }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            jared.casey Jared Casey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes