GitHub user oknet opened a pull request:

    https://github.com/apache/trafficserver/pull/642

    Proposal: NetVC Context

    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.
    And SSLNetVConnection has member sslClientConnection and method 
setSSLClientConnection() and getSSLClientConnection() to indictor ATS is a 
client or server in a SSL session.
    
    To abstract those two feature, 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.
    
    


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/oknet/trafficserver patch-8

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/642.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 #642
    
----
commit 98c90f10e2fbf1b668e88479dd1fbc7c6112692a
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T09:29:14Z

    Add Context and methods for NetVC

commit 535e783f5eb691053d88c9953cc4977ff80e7374
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T09:37:43Z

    set context for new NetVC allocated by NetAccept

commit d54a051d67939608d3b8b52c0f9401bb622dd6a1
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T09:39:34Z

    set context for new NetVC allocated by connect_re

commit 5e00616c20fb4de088290791c5938e28dae25628
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T09:43:23Z

    replace netvc->server_addr
    
    with netvc->get_server_addr()

commit 6db7f103674d98cf58eb133dd3863dc566c0eb1f
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T09:44:57Z

    Eliminate netvc->server_addr

commit 183bf1f949cce1433dd74460653eb7e85c5f1192
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T10:22:55Z

    optimize Connection::connect()

commit 2672d9c6a5cd8957efdc3956ab2682a38df74b08
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T10:25:46Z

    Eliminate netvc->server_addr

commit 9a9a5420102f8ccc138df44edebc8fe03a70958c
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T10:28:35Z

    Eliminate netvc->server_addr

commit 7b36c7ffb1449969f788bdde2308294b4afd2099
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T10:54:55Z

    Eliminate netvc->server_addr
    
    local_addr is init by ink_zero() in NetVConnection()

commit 84d5a6f8f0d4a6db28ee2111b8c4f1269cbd28c6
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T10:56:59Z

    Eliminate netvc->server_addr

commit 6252e07b65dd8262656d3caed9e91d36b164b043
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T11:00:48Z

    Eliminate netvc->server_addr

commit d4b355821dc22f530485cc15f4e0f8fd6af70656
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T12:32:35Z

    implement get_client/server_addr/ip/port() method

commit c528d311966b2025d3e76d4ed1b7ad91a4653197
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T12:52:10Z

    Eliminate netvc->server_addr

commit 1e1ce63e2cb8ac509b3a1aea5475ddd4454cfd39
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T13:01:56Z

    fix typo error

commit f1160b3bb7079a249a1b90a68ccf7cdd224db5b1
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T13:26:47Z

    fix typo error

commit 0f74a69a31f0920bf4b176ab7c3ef79a8c740c87
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T14:10:07Z

    to replace sslClientConnection with netvc context

commit 3d47bb4b72caafc6f0c4f1259bf167d6a28c5b0e
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-07T14:17:06Z

    fix typo error

commit f0fcf1819cafd932c4bdb48c07c6dcc86b45dd76
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-10T14:11:39Z

    add context for TSVConnFdCreate

commit db2d43f05ddc05ff28306d7d249e43f4407fcb52
Author: Oknet <xuc...@gmail.com>
Date:   2016-05-11T09:27:15Z

    Eliminate gcc warning for get_client/server_*()

----


---
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.
---

Reply via email to