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

Improve Semantics of Cursor

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • None

      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.

       

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

              Created:
              Updated:
              Resolved: