Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3464

"connect" method waits endlessly on VPN connection

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 0
    • Not Needed

      What problem are you facing?

      Cannot connect (program hangs) a server located over a VPN. Localhost connects fine. Older drivers also work fine.

      What driver and relevant dependency versions are you using?

      I face the problem only on version 4.0.x. By using the previous release (3.6.10) everything works fine (both VPN and localhost).

      Steps to reproduce?

      I'm using this snippet of code:

          const client = new mongodb.MongoClient(
              "mongodb://10.2.0.30:27017"
          );
          try {
              await client.connect();     //hangs here
              const db = client.db("au15db");
              await init_table({ db });
          }
          catch (e) {
              console.error(e);
          }
          finally {
              await client.close();
          }
      

      The remote server runs MongoDB 3.6, while the local one is 4.2.3.

       

      I observed something strange in the near past with Compass, yet over the same VPN, and I've posted the issue (see above). However, it has been patched after some days.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            vernarim@libero.it Mario Vernari
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: