[
https://issues.apache.org/jira/browse/TS-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840713#comment-13840713
]
Ethan Lai commented on TS-2397:
-------------------------------
IMHO, there are 4 more hooks, but I'm not sure where and whether should we add
them in http transaction state or not.
TSHttpHookAdd: adds a global hook. You can globally add any hook except
for
- TS_HTTP_REQUEST_TRANSFORM_HOOK
- TS_HTTP_RESPONSE_TRANSFORM_HOOK
- TS_HTTP_RESPONSE_CLIENT_HOOK
TS_HTTP_LAST_HOOK _must_ be the last element. Only right place
to insert a new element is just before TS_HTTP_LAST_HOOK.
Session hook shall not be included in http transaction state diagram.
- TS_HTTP_SSN_START_HOOK
- TS_HTTP_SSN_CLOSE_HOOK
> Transaction State diagram is out-dated
> --------------------------------------
>
> Key: TS-2397
> URL: https://issues.apache.org/jira/browse/TS-2397
> Project: Traffic Server
> Issue Type: Bug
> Components: Documentation
> Reporter: Igor Galić
> Assignee: Igor Galić
> Fix For: Docs
>
> Attachments: http-hooks-and-transactions.en.rst.patch,
> http-hooks-and-transactions.en.rst.patch,
> http-hooks-and-transactions_adding-hooks.en.rst.patch, http_state.png,
> http_txn_state_diagram.png
>
>
> as reported by [~yzlai] to users@
> {quote}
> I've found that the State transition in HTTP Transaction State Diagram may be
> incorrect.
> Per my http.* debug log,
> {code}
> (http) [0] State Transition: STATE_UNDEFINED -> API_READ_REQUEST_HDR
> (http) [0] State Transition: API_READ_REQUEST_HDR -> HTTP_API_PRE_REMAP
> (http) [0] State Transition: HTTP_API_PRE_REMAP -> HTTP_REMAP_REQUEST
> (http) [0] State Transition: HTTP_REMAP_REQUEST -> HTTP_API_POST_REMAP
> (http) [0] State Transition: HTTP_API_POST_REMAP -> CACHE_LOOKUP
> (http) [0] State Transition: CACHE_LOOKUP -> DNS_LOOKUP
> (http) [0] State Transition: DNS_LOOKUP -> API_OS_DNS
> {code}
> {{CACHE_LOOKUP}} is just after {{POST_REMAP}} and is ahead of {{DNS_LOOKUP}}.
> But in the State Diagram, {{CACHE_LOOKUP}} is after {{OS_DNS_HOOK}}.
> I'm using ats-4.0.1, it would be great if some body can correct the diagram.
> :)
> Many Thanks!
> -Ethan
> {quote}
> It would be really awesome if someone could update that. It would be even
> more awesome if that update it such that it's generated from "code", see
> http://www.opsschool.org/en/latest/meta/conventions.html and
> its code:
> https://raw.github.com/opsschool/curriculum/master/meta/conventions.rst as an
> example.
--
This message was sent by Atlassian JIRA
(v6.1#6144)