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

Lars Svensson updated TS-2411:
------------------------------
    Attachment: TS-2411.diff

Currently, in the t_state.range_setup == HttpTransact::RANGE_NONE case, 
server_response_body_bytes and cache_response_body_bytes are set in 
HttpSM::tunnel_handler_transform_write. This does not work, because neither 
t_state.pre_transform_source nor client_response_body_bytes have a value here.

To me, the best solution seems to be to handle the t_state.range_setup == 
HttpTransact::RANGE_NONE case in HttpSM::tunnel_handler_ua instead.

Btw, this issue does not need to have the api-change label. The fix could be 
included earlier than 6.0.0.

> TS Http byte get functions does not return the true number, for server 
> response body byte get
> ---------------------------------------------------------------------------------------------
>
>                 Key: TS-2411
>                 URL: https://issues.apache.org/jira/browse/TS-2411
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>            Reporter: Roee Gil
>              Labels: api-change
>             Fix For: 6.0.0
>
>         Attachments: TS-2411.diff
>
>
> When using the example of null-transform, adding TS_EVENT_HTTP_TXN_CLOSE to 
> hooks, and counting byte number, I get:
> // server -> proxy
> TSHttpTxnServerRespHdrBytesGet(txnDB);
> TSHttpTxnServerRespBodyBytesGet(txnDB);
> // proxy -> client
> TSHttpTxnClientRespHdrBytesGet(txnDB);
> TSHttpTxnClientRespBodyBytesGet(txnDB);
> 1. server side response body = 0
> 2. client side response body = (payload size)
> when inspecting this issue, it seems that VConnection is downloading the 
> content but, this does not count in server response byte get



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

Reply via email to