Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-132

Making http request to ECONNREFUSED node seems to loop forever...

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      To reproduce, simply try to issue a raw request to say, "localhost:2"

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

        Activity

        Hide
        mnunberg Mark Nunberg added a comment -

        static void
        test_refused(lcb_t handle)

        { lcb_http_cmd_t cmd; lcb_http_request_t req; memset(&cmd, 0, sizeof(cmd)); cmd.version = 1; OV1(&cmd).host = "127.0.0.1:2"; OV1(&cmd).path = "/"; OV1(&cmd).npath = 1; OV1(&cmd).content_type = "application/json"; OV1(&cmd).method = LCB_HTTP_METHOD_GET; lcb_error_t err; err = lcb_make_http_request(handle, NULL, LCB_HTTP_TYPE_RAW, &cmd, &req); assert(err == LCB_SUCCESS); lcb_wait(handle); printf("Wait done..\n"); }

        mnunberg@csure:~/src/sdkd-cpp/src/views$ time ./test
        ^C

        real 1m37.361s
        user 0m9.861s
        sys 1m27.213s
        mnunberg@csure:~/src/sdkd-cpp/src/views$

        Show
        mnunberg Mark Nunberg added a comment - static void test_refused(lcb_t handle) { lcb_http_cmd_t cmd; lcb_http_request_t req; memset(&cmd, 0, sizeof(cmd)); cmd.version = 1; OV1(&cmd).host = "127.0.0.1:2"; OV1(&cmd).path = "/"; OV1(&cmd).npath = 1; OV1(&cmd).content_type = "application/json"; OV1(&cmd).method = LCB_HTTP_METHOD_GET; lcb_error_t err; err = lcb_make_http_request(handle, NULL, LCB_HTTP_TYPE_RAW, &cmd, &req); assert(err == LCB_SUCCESS); lcb_wait(handle); printf("Wait done..\n"); } mnunberg@csure:~/src/sdkd-cpp/src/views$ time ./test ^C real 1m37.361s user 0m9.861s sys 1m27.213s mnunberg@csure:~/src/sdkd-cpp/src/views$
        Hide
        mnunberg Mark Nunberg added a comment -

        not really "blocking" me.. but this is a fatal issue..

        Show
        mnunberg Mark Nunberg added a comment - not really "blocking" me.. but this is a fatal issue..
        Show
        mnunberg Mark Nunberg added a comment - https://github.com/couchbase/libcouchbase/commit/e37a9fab6d8ae7f556082a339cd8561ec1e93f32

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes