GitHub user oknet opened a pull request: https://github.com/apache/trafficserver/pull/753
Proposal: NetVC Context Goal 1st: In the NetVConnection, we have get_local_addr() and get_remote_addr() method. Also have members local_addr, remote_addr and netvc->con.addr. Thus, we should using local_addr or remote_addr to replace member server_addr in UnixNetVConnection. Goal 2nd: SSLNetVConnection has member sslClientConnection with 2 methods setSSLClientConnection() and getSSLClientConnection() to indictor ATS is a client or server in a SSL session. To abstract those two goal, I'm design the netvc context function. As a proxy, there has two side: client side ( Client <-> Proxy ) and server side ( Proxy <-> Server ). With the netvc context funtion to indicate which side the NetVC working on. Goal 3rd: Fix a minor bug in NetAccept::do_blocking_accept, call to check_emergency_throttle(con) first then allocate vc. Goal 4th: NetAccept Optimize, remove dup code, etc... You can merge this pull request into a Git repository by running: $ git pull https://github.com/oknet/trafficserver netvc_context Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/753.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #753 ---- commit c5eb7c0d7ef8524ef7f5abb450d5f7ba78e4059c Author: Oknet Xu <xuc...@skyguard.com.cn> Date: 2016-06-28T10:43:06Z Proposal: NetVC Context ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---