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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Connection Management, SDAM
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: