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

Fix NiTL::shutdown() without startup()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.11
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: