oknet opened a new pull request #7226: URL: https://github.com/apache/trafficserver/pull/7226
In order to resolve the leaks of UnixNetVConnection, from v5.0.0-rc0, the feature "Setting default inactivity timeout" was added by TS-1375 (commit 6397b161). The event `EVENT_INACTIVITY_TIMEOUT` is used to limit the maximum time for the transaction. It can reclaim NetVC if the transaction stalls. For example, HttpSM read the request from client and only received part of content, or HttpSM send the request to origin server and only sent part of content. The event `EVENT_ACTIVE_TIMEOUT` is used to limit the maximum life time for the session. It can avoid long live idle sessions. For example, HttpSM received a HTTP/1.0 request and shutdown read for ClientVC, and then it requests an OS DNS lookup. Since I/O operation is not set, only the event "EVENT_ACTIVE_TIMEOUT" is valid for HttpSM. HttpSM as the processor of HTTP transaction, it should handle the event "EVENT_INACTIVITY_TIMEOUT" and the event "EVENT_ACTIVE_TIMEOUT" and perform the same operation. But if it disabled both read and write, it will only handle the event "EVENT_ACTIVE_TIMEOUT". ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
