[ 
https://issues.apache.org/jira/browse/TS-4703?focusedWorklogId=28803&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-28803
 ]

ASF GitHub Bot logged work on TS-4703:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Sep/16 16:53
            Start Date: 12/Sep/16 16:53
    Worklog Time Spent: 10m 
      Work Description: Github user jpeach commented on a diff in the pull 
request:

    https://github.com/apache/trafficserver/pull/1007#discussion_r78410287
  
    --- Diff: lib/records/RecHttp.cc ---
    @@ -618,6 +633,30 @@ ts_session_protocol_well_known_name_indices_init()
       DEFAULT_TLS_SESSION_PROTOCOL_SET.markAllIn();
     
       DEFAULT_NON_TLS_SESSION_PROTOCOL_SET = HTTP_PROTOCOL_SET;
    +
    +  TSProtoTags = ink_hash_table_create(InkHashTableKeyType_String);
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_HTTP_1_0, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_HTTP_1_0)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_HTTP_1_1, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_HTTP_1_1)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_HTTP_2_0, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_HTTP_2_0)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_TLS_1_3, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_TLS_1_3)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_TLS_1_2, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_TLS_1_2)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_TLS_1_1, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_TLS_1_1)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_TLS_1_0, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_TLS_1_0)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_TCP, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_TCP)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_UDP, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_UDP)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_IPV4, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_IPV4)));
    +  ink_hash_table_insert(TSProtoTags, TS_PROTO_TAG_IPV6, 
reinterpret_cast<void *>(const_cast<char *>(TS_PROTO_TAG_IPV6)));
    +}
    +
    +const char *
    +ts_normalize_proto_tag(const char *tag)
    --- End diff --
    
    I think APIs exported from librecords should be ``Rec*()``.


Issue Time Tracking
-------------------

    Worklog Id:     (was: 28803)
    Time Spent: 6h 10m  (was: 6h)

> Adds an API call to retrieve transaction protocol
> -------------------------------------------------
>
>                 Key: TS-4703
>                 URL: https://issues.apache.org/jira/browse/TS-4703
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: TS API
>            Reporter: Petar Penkov
>            Assignee: Susan Hinrichs
>             Fix For: 7.0.0
>
>          Time Spent: 6h 10m
>  Remaining Estimate: 0h
>
> It would be useful if there was a way to retrieve the underlying protocol for 
> a given transaction through the tsapi at the very least for plugin logging 
> purposes. This can be achieved with a very simple method since this 
> information is already available internally. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to