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

Change handling of network errors or timeouts during connection handshake

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: None
    • None

      PyMongo follows the SDAM spec for handling network timeouts and other errors when attempting an operation, but it does not follow the spec when first creating a new socket connection. A call to pool.get_socket that fails due to a network timeout should result in the server that pool belongs to being reset, with a descriptive error added to the server's error field. See the spec clarification here:

      https://github.com/mongodb/specifications/commit/bfddbd98bf396104f78500f93f1f13e3fd2d8c3a

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: