Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4705

Proposal: NetVC Context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.1.0
    • Core
    • None

    Description

      Goal 1st:
      In the NetVConnection, we have get_local_addr() and get_remote_addr() methods.
      Also have members local_addr, remote_addr and netvc->con.addr.

      Thus, we should using netvc->con.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 above two goals, 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...

      Attachments

        Issue Links

          Activity

            People

              oknet Chao Xu
              oknet Chao Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h 40m
                  3h 40m