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

Prevent memory leaks from generators

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.2
    • Affects Version/s: 1.5.1
    • Component/s: None
    • Labels:
      None

      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.

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: