Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2394

/Topology/invalidate_server/ tests are slow with SSL

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: libmongoc, tls
    • None

      These tests call mongoc_topology_invalidate_server and then (if the server is 3.6+) they implicitly send "endSessions" from mongoc_client_destroy or mongoc_client_pool_destroy at the end of the test. For some reason, calling "endSessions" involves two SSL handshakes; the first fails after connectTimeoutMS and the second succeeds instantly.

      Why does calling mongoc_topology_invalidate_server during the test cause a failed handshake at the end?

      Why does the handshake take connectTimeoutMS to fail instead of failing instantly? And is the problem only with OpenSSL?

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: