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

Allow noCursorTimeout cursor option when reading GridFS chunks collection

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.2
    • Component/s: Spec Comp
    • Labels:
      None

      In mongodb/mongo-php-library#387, a user reported a case where reading a GridFS file produced a "Cursor not found" exception after some period. This was caused by reading a GridFS file over an extended period of time without advancing to a new batch of chunk documents, after which the server killed the cursor. Supporting a noCursorTimeout option on the openDownloadStream() (and related) method would address this. The downloadToStream() (and related) method shouldn't need such an option, as it reads the file as fast as possible (a cursor timeout might only be hit if writing to the destination stream was blocking).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: