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

ssl_c: (Completion-based SSL): Writes may sometimes hang

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.6, 2.5.8, 2.6.4, 2.7.1
    • Fix Version/s: 2.7.2
    • Component/s: library
    • Labels:
      None

      Description

      var couchbase = require("couchbase");
       
      // Connect to Couchbase Server
       
      var cluster = new couchbase.Cluster('couchbases://10.142.151.101?ssl=no_verify');
      var bucket = cluster.openBucket('default', function(err) {
        if (err) {
          throw err;
        }
       
        // Retrieve a document
        bucket.get('u:king_arthur', function(err, result) {
          if (err) {
            // Failed to retrieve key
            throw err;
          }
        var doc = result.value;
        console.log("Read document: " + doc.email);
          
        // Store a document
        doc.comment = "Random beer from Norway";
        bucket.upsert('u:king_arthur', doc, function(err, result) {
          if (err) {
            // Failed to replace key
            throw err;
          }
        console.log(result);
       
      // Re-read the document after writing.
        bucket.get('u:king_arthur', function(err, result) {
          if (err) {
            throw err;
          }
        var doc2 = result.value;
        console.log("Read updated comment: " + doc2.email + ", " + doc2.comment);
       
            // Success!
            process.exit(0);
          });
        });
      });
      });
      

      hangs after the second replace.

        Attachments

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

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              mnunberg Mark Nunberg (Inactive)
              Reporter:
              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

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.