Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2211

MongoClient does not mark a server unknown when connection handshake fails with a network timeout error

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connection Mgmt, SDAM
    • Labels:
      None

      The SDAM spec says that a network timeout error that occurs before the connection handshake completes MUST reset the server to Unknown. MongoClient does not follow this rule:

      If there is a network error or timeout on the connection before the handshake completes, the client MUST replace the server's description with a default ServerDescription of type Unknown, and fill the ServerDescription's error field with useful information.

      https://github.com/mongodb/specifications/blob/bc864e6/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst#network-error-when-reading-or-writing

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: