This API was moved to a new separated
ticket(TS-2612<https://issues.apache.org/jira/browse/TS-2612>
).


On Tue, Mar 4, 2014 at 4:15 PM, Yunkai Zhang <yunkai...@gmail.com> wrote:

> I have opened a ticket(TS-2610<https://issues.apache.org/jira/browse/TS-2610>)
> that add %<cqpt>(client_req_proto_type) field into LogFormat, so that we
> can distinguish the protocol type of each log records.
>
> But for plugins that using TSHttpConnect() API to do request, the Logging
> module can't know which protocol type is used, so I add a new API:
>       TSHttpConnectWithProtoType(struct sockaddr const* addr,
> TSNetProtoType proto_type);
>
> After introducing TSHttpConnectWithProtoType() API, TSHttpConnect() API
> would be a special case of it:
>       TSVConn
>       TSHttpConnect(sockaddr const* addr)
>       {
>         return TSHttpConnectWithProtoType(addr, TS_NET_PROTO_HTTP);
>       }
>
> The old plugins needn't to change anything if they do not care %<cqpt>
> field, so the new API wouldn't cause compatibility issue.
>
> --
> Yunkai Zhang
> Work at Taobao
>



-- 
Yunkai Zhang
Work at Taobao

Reply via email to