Operations on SSL connection hang on node 0.11.13

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Amazon linux, mongodb enterprise 2.6.4, node 0.11.13
    • 5
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Following code

        var mongodb = require('mongodb');
      
        /**
         * Connect to the db
         */
      
      mongodb.MongoClient.connect("mongodb://localhost:27017/test?ssl=true", function(err, db) {
        console.log('Error1: ' + err);
        db.collection('test').insert({ a: 1}, function(err) {
          console.log('Inserted with error: ' + err);
        });
      });
      

      Output with 0.11.13:

      [ec2-user@ip-10-153-184-74 troubleshoot-mongoose]$ ../node-0.11.13/bin/node index.js 
      js-bson: Failed to load c++ bson extension, using pure JS version
      Error1: null
      ^C
      

      Output with node 0.10.30:

      [ec2-user@ip-10-153-184-74 troubleshoot-mongoose]$ ../node-0.10.30/bin/node index.js 
      js-bson: Failed to load c++ bson extension, using pure JS version
      Error1: null
      Inserted with error: null
      

            Assignee:
            Christian Amor Kvalheim
            Reporter:
            Valeri Karpov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: