JakeChampion opened a new pull request, #14095: URL: https://github.com/apache/trafficserver/pull/14095
`UnixNetProcessor::connect_re()` schedules the VC on the target thread when it cannot get the lock of the continuation or of the `NetHandler`. If the caller cancels the action before `UnixNetVConnection::startEvent()` runs, `startEvent()` called `NetHandler::free_netevent()`. `free_netevent()` has `ink_release_assert(ne->nh == this)`. Only `connectUp()` attaches the VC to a `NetHandler`, and `connectUp()` did not run, so `nh` is null and `traffic_server` aborts. This change frees the VC with `free_thread()`. The failure path of `connectUp()` does the same for a VC that is not attached. I found this in a review of the code. I do not have a test for it, because the test must make the lock attempt in `connect_re()` fail and then cancel the action. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
