[ 
https://issues.apache.org/jira/browse/TS-3502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sudheer Vinukonda updated TS-3502:
----------------------------------
    Description: 
Currently, there's an API to get the client socket's fd 
{{TSHttpTxnClientFdGet}} and {{TSHttpSsnClientFdGet}}. This API is used by the 
{{tcpinfo}} plugin to get tcp stats for the client side socket. This jira 
proposes to add the corresponding API for server socket fd. 

{code}
TSReturnCode TSHttpTxnServerFdGet(TSHttpTxn txnp, int *fdp);
TSReturnCode TSHttpSsnServerFdGet(TSHttpSsn ssnp, int *fdp);
{code}

Note that the API will return {{TS_ERROR}} for a txn that returns a cached 
response with the fd set to {{-1}}

  was:
Currently, there's an API to get the client socket's fd 
{{TSHttpTxnClientFdGet}} and {{TSHttpSsnClientFdGet}}. This API is used by the 
{{tcpinfo}} plugin to get tcp stats for the client side socket. This jira 
proposes to add the corresponding API for server socket fd. 

{code}
TSReturnCode TSHttpTxnServerFdGet(TSHttpTxn txnp, int *fdp);
TSReturnCode TSHttpSsnServerFdGet(TSHttpSsn ssnp, int *fdp);
{code}

Note that the API will return {{TS_ERROR}} for a txn that returns a cached 
response.


> TS API to get origin socket fd
> ------------------------------
>
>                 Key: TS-3502
>                 URL: https://issues.apache.org/jira/browse/TS-3502
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Plugins
>            Reporter: Sudheer Vinukonda
>
> Currently, there's an API to get the client socket's fd 
> {{TSHttpTxnClientFdGet}} and {{TSHttpSsnClientFdGet}}. This API is used by 
> the {{tcpinfo}} plugin to get tcp stats for the client side socket. This jira 
> proposes to add the corresponding API for server socket fd. 
> {code}
> TSReturnCode TSHttpTxnServerFdGet(TSHttpTxn txnp, int *fdp);
> TSReturnCode TSHttpSsnServerFdGet(TSHttpSsn ssnp, int *fdp);
> {code}
> Note that the API will return {{TS_ERROR}} for a txn that returns a cached 
> response with the fd set to {{-1}}



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

Reply via email to