Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-271

Usage of GridIO#gets runs into an infinite loop when reaching the end of a file

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.1
    • Affects Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      GridIO#gets doesn't return nil when reaching the end of a file when used with a single or multi-character separator. This causes common usage of the method run infinitely, while waiting for a nil that will never come.

      Please see these pull requests:

      https://github.com/mongodb/mongo-ruby-driver/pull/40
      https://github.com/mongodb/mongo-ruby-driver/pull/41

            Assignee:
            kbanker Kyle Banker
            Reporter:
            rmm5t Ryan McGeary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: