Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62571

Serialize concurrent accesses to `Socket` in `ThrowOnNetworkErrorInEnsureSync`

    • Fully Compatible
    • ALL
    • v5.2, v5.0
    • Service Arch 2022-1-24
    • 69
    • 1

      The main thread attempts to close the socket (here), while the connection thread is running setsockopt on the socket (here). We need to serialize accesses to the socket object to fix the data-race.

      This is almost identical to the issue reported in SERVER-61107 and the same fix may apply here.

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: