Skip to content

Resolve "MtTcpListenerMgr::stop() destroys listener without stopping it first"

Thomas Markwalder requested to merge 2655-implement-mtleasequerylistenermgr into master

Closes #2655 (closed)

MtTcpListenerMgr::stop() doesn't stop the the listener instance before destroying it. This can leave the socket still in use at the OS level. I found this while testing in-progress class, MtLeaseQueryListenerMgr, one UT would pass, a subsequent tests would fail with listener failing to start due to address already in-use. The HTTP class hierarchy from which these were modeled does stop it, so this got dropped.

Edited by Thomas Markwalder

Merge request reports