[
https://issues.apache.org/jira/browse/TS-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982249#comment-13982249
]
ASF subversion and git services commented on TS-2760:
-----------------------------------------------------
Commit 2309ec1013ec441f80e4710568af1152c1410231 in trafficserver's branch
refs/heads/master from [~yunkai]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=2309ec1 ]
TS-2760: Use TSFetchClientProtoStackSet() API in SPDY
Setting client protocol stack in spdy_fetcher_launch() by using
TSFetchClientProtoStackSet() API, so that the logging module
can record protocol stack correctly.
And fix a trival bug when init proto_type_map for logging module.
Signed-off-by: Yunkai Zhang <[email protected]>
> Add TSFetchClientProtoStackSet/Get() API in experimental.h
> ----------------------------------------------------------
>
> Key: TS-2760
> URL: https://issues.apache.org/jira/browse/TS-2760
> Project: Traffic Server
> Issue Type: Improvement
> Components: TS API
> Reporter: Yunkai Zhang
> Assignee: Yunkai Zhang
> Fix For: 5.0.0
>
> Attachments:
> 0001-TS-2760-Add-TSFetchClientProtoStackSet-Get-API-in-ex.patch,
> 0002-TS-2760-Use-TSFetchClientProtoStackSet-API-in-SPDY.patch
>
>
> Users need a way to set/get client protocol stack when working with TSFetchSM
> extended API, I'll add two API showed as below:
> {code}
> /*
> * Set client protocol stack in FetchSM
> *
> * @param fetch_sm: returned value of TSFetchCreate().
> * @param proto_stack: client protocol stack.
> */
> tsapi void TSFetchClientProtoStackSet(TSFetchSM fetch_sm,
> TSClientProtoStack proto_stack);
> /*
> * Get client protocol stack in FetchSM
> *
> * @param fetch_sm: returned value of TSFetchCreate().
> *
> * return the client protocol stack of fetch_sm.
> */
> tsapi TSClientProtoStack TSFetchClientProtoStackGet(TSFetchSM fetch_sm);
> {code}
> SPDY in core need these API to add "TS_PROTO_SPDY" to the protocol stack, so
> that logging module can record protocol stack correctly.
> Actually, these two API had been implemented in Taobao's branch, I forgot to
> migrate them to ATS core, all it's my wrong.
--
This message was sent by Atlassian JIRA
(v6.2#6252)