Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-44

Socket leak in copy_database

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: 0.2, 0.3, 0.2.1, 0.3.1
    • Fix Version/s: 0.3.2
    • Component/s: None
    • Labels:
      None
    • # Replies:
      9
    • Last comment by Customer:
      false

      Description

      Motor leaks one socket in each call to copy_database.

      The socket is closed by garbage collection, but it continues to count toward max_pool_size. If max_pool_size is finite (the default is 100) then the client hangs after max_pool_size calls to copy_database.

      Applies to MotorClient and MotorReplicaSetClient.

      Motor users apparently don't call copy_database much, or this would have been reported earlier.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                4 years, 2 weeks ago
                Date of 1st Reply: