Issue connecting to mongod using C++ driver

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Client
    • None
    • Environment:
      OSX
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For some reason, it seems like connecting to a (2.0) mongod using the no-errmsg connect() method fails when using the C++ driver (2.2).

      void run() {
      
         cout << "run()\n";
         DBClientConnection c;
      
         string errmsg;
      
         // This does not work, error in verify(p) in MessagingPort::port()
         c.connect("localhost:27017");
         
         // This seems to work
         //if(c.connect("localhost:27017", errmsg))
         // cout << "connect ok\n";
      
      }
      

      Exact compilation steps pending, as well as steps on a pure-2.0 setup.

        1. run.sh
          0.3 kB

            Assignee:
            Eric Milkie
            Reporter:
            Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: