Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-501

Prevent memory leaks from generators

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Labels:
      None

      Description

      In MongoDB\Model\CachingIterator we wrap a traversable in a generator. However, when freeing the iterator instance, the generator sometimes gets left behind. When used in conjunction with a MongoDB cursor, this means that the cursor potentially stays open if it wasn't exhausted. This can cause significant memory leaks.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: