[ 
https://issues.apache.org/jira/browse/TS-4896?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526404#comment-15526404
 ] 

James Peach commented on TS-4896:
---------------------------------

What hook are you talking about here? If it is a hook where the txn is 
available, then that's unexpected, but on {{ssn_close}} for example, you would 
just use the corresponding {{Ssn}} APIs.

> TSHttpTxnClientAddrGet and TSHttpTxnIncomingAddrGet may return NULL
> -------------------------------------------------------------------
>
>                 Key: TS-4896
>                 URL: https://issues.apache.org/jira/browse/TS-4896
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Susan Hinrichs
>            Priority: Minor
>
> With the clean up rearranging to ensure SSN close occurs after TXN close 
> (TS-4507), the API calls TSHttpTxnClientAddrGet and TSHttpTxnIncomingAddrGet 
> may return NULL.  This can occur in the case where the client connection has 
> terminated, but the HttpSM has not yet shutdown.  We now null out the 
> reference in HttpSM to the client_vc.  These calls fetch the addresses from 
> the client_vc, so it HttpSM reference to it has been removed, these API's 
> will return NULL.
> Locally, we copy these addresses into the ProxyClientSession before the 
> client_vc is disconnected.  We had push back from deployed plugins for a 
> short term fix.  
> Not clear what if anything we want to do in open source.  But wanted people 
> to be aware that this is an issue.



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

Reply via email to