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

Server String() function access unprotected variables

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc1
    • Affects Version/s: None
    • Component/s: Internal
    • None

      The Server type's String function accesses variables from the struct which can be updated asynchronously. Fields like averageRTT should be taken from the immutable description rather than the server struct itself. connectionstate should be changed to use the atomic package so it can be loaded/stored without race conditions.

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: