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

Initial connect timeout not being observed

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 2.0.6
    • 2.0.5
    • library
    • Security Level: Public
    • None

    Description

      Steps:

      1) Set the timeout to something small (say, 1 second)
      2) Suspend the mock server
      3) Try to connect to the mock

      This will hang the client until an actual connection error is received (or possibly is never received). The perl tests die with a SIGALRM in this case.

      note "Suspending mock server";
      $mock->suspend_process();
      $cbo->timeout(2);
      ok(!$cbo->connect(), "Connect failed");

      Needless to say, $cbo->connect() stalls.

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            mnunberg Mark Nunberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty