Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-682

Improve Semantics of Cursor

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • CRUD
    • None

    Description

      To enable the use of context deadlines and timeouts we need to ensure that we don't send a request if a deadline is approaching. For tailable await cursors, we can set maxTimeMS, which will help ensure the server returns within a desirable amount of time.

      If a context is cancelled or we do exceed the deadline, the cursor needs to be closed (and potentially killed), and the socket that was used needs to be closed.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: