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

Fix NiTL::shutdown() without startup()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.11
    • None
    • Internal Code, Networking
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2019-05-20

    Description

      It should be legal to call shutdown() on a network interface without calling startup() (because an owning task executor will call shutdown() in its dtor).

      Currently this crashes (because the NiTL doesn't keep track of whether it's started). Changing the _inShutdown atomic to a _state enum atomic can resolve that problem

      Attachments

        Activity

          People

            mira.carey@mongodb.com Mira Carey
            mira.carey@mongodb.com Mira Carey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: