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

Ensure top level context.Context is used when making network calls.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      All the Collection level methods have context.Context as their first parameter which allows setting a deadline for the operation to occur within. In the private/ops package the runMustUsePrimary and the runMayUseSecondary functions spawn a new goroutine and give it a context.Background which is used when setting the deadline on the TCP connection. The context.Context provided by the user should be used to set the deadline on the TCP connection, update the implementation to do this.

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

              Created:
              Updated:
              Resolved: