JakeChampion opened a new pull request, #14094: URL: https://github.com/apache/trafficserver/pull/14094
When a TLS handshake changes to a blind tunnel, `SSLNetVConnection::net_read_io()` sends `VC_EVENT_READ_COMPLETE` to the `SSLNextProtocolTrampoline`. The trampoline sends `NET_EVENT_ACCEPT` to the endpoint, or closes the VC when there is no endpoint. If the VC is closed in that call, `readSignalDone()` frees the VC and returns `EVENT_DONE`. `net_read_io()` ignored the result. It then read the handshake state of the freed VC, wrote to its read VIO, and could send a second read signal. This change stops `net_read_io()` when `readSignalDone()` returns `EVENT_DONE`. The other callers of `readSignalDone()` in this function do not use the VC after the call. I found this in a review of the code. I do not have a test that causes the close in this path. -- 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]
