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

Sandeep Davu edited comment on TS-4135 at 1/28/16 6:19 PM:
-----------------------------------------------------------

Here is the issue with redirect.
https://github.com/apache/trafficserver/blob/master/proxy/http/HttpSM.cc#L7525

https://github.com/apache/trafficserver/blob/master/proxy/http/HttpSM.cc#L7538

redirect_request destroys the client response headers and server request 
headers. CPP api still has pointers to these buffers and calls TSMLocRelease in 
destructor of Transaction.

[~briang] any pointers on how to handle this. We can live with not calling 
TSMLocRelease at all. If there is a better way let me know.


was (Author: sdavu):
Here is the issue with redirect.
https://github.com/apache/trafficserver/blob/master/proxy/http/HttpSM.cc#L7525

https://github.com/apache/trafficserver/blob/master/proxy/http/HttpSM.cc#L7538

redirect_request destroys the client response headers and server request 
headers. CPP api still has pointers to these buffers and calls TSMLocRelease in 
destructor of Transaction.


> C++ api coredumps when used with other plugins using TSHttpTxnRedirectUrlSet.
> -----------------------------------------------------------------------------
>
>                 Key: TS-4135
>                 URL: https://issues.apache.org/jira/browse/TS-4135
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: CPP API
>            Reporter: Sandeep Davu
>            Assignee: Brian Geffon
>              Labels: crash
>             Fix For: 6.2.0
>
>
> There are  multiple TS_EVENT_HTTP_SEND_REQUEST_HDR and 
> TS_EVENT_HTTP_READ_RESPONSE_HDR for plugins that use TSHttpTxnRedirectUrlSet.
> Transaction object ignores these events.
> Ideally these events should be handled by reinitializing the server_request 
> and server_response.



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

Reply via email to