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

Change handling of network errors or timeouts during connection handshake

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: