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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.1
    • Affects Version/s: 1.3.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Kyle Banker (Inactive)
            Reporter:
            Ryan McGeary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: