You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2016/05/24 23:42:12 UTC

[jira] [Commented] (TS-4481) CPP API should not initialize all handles on every event.

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

Alan M. Carroll commented on TS-4481:
-------------------------------------

The changes are 

* The handles are cleared, not re-initialized, per hook.
* Handles are loaded from the transaction object on demand.
* The current event is stored in the {{state_}} rather than being passed around because only one method, as far as I can tell, actually needs it.

> CPP API should not initialize all handles on every event.
> ---------------------------------------------------------
>
>                 Key: TS-4481
>                 URL: https://issues.apache.org/jira/browse/TS-4481
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: CPP API
>            Reporter: Alan M. Carroll
>            Assignee: Brian Geffon
>
> To avoid problems with stale handles to transaction headers the CPP API was changed to initialize all such handles for a set of events. However this causes the error log to be flooded because not all headers are available for all of the events and each one that is not generates an error message. This generates a lot of errors even in normal use without problems. Simply disabling the messages seems a poor choice as the cases where the particular header is accessed and not found should be noted.



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