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

listen_test should join the listening thread on all exit paths

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.4
    • Affects Version/s: None
    • Component/s: Networking
    • Fully Compatible
    • ALL
    • Platforms 12 (04/01/16)
    • 0

      If the ASSERT_APPROX_EQUAL in listen_test fails, it throws an assertion failure exception. That leaves the joinable thread 't' unjoined when t's destructor is invoked. That leads to an immediate call to terminate before the message about the failed test is printed.

      We need to both join the thread on all paths, and fix up the test so that it isn't flaky.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: