For a synchronous hook a callback is required to finish all operations on the same call stack and return when done.
An asynchronous hook allows callback to finish later, on a different call stack by calling an enable / resume function. On Wed, Dec 12, 2018 at 12:51 PM Walt Karas <wka...@oath.com.invalid> wrote: > What's the distinction between synchronous and asynchronous hooks? > > On Wed, Dec 12, 2018 at 12:41 PM Fei Deng <f...@oath.com.invalid> wrote: > > > These would be synchronous hooks. > > > > On Wed, Dec 12, 2018 at 8:53 AM Alan Carroll > > <solidwallofc...@oath.com.invalid> wrote: > > > > > Would these be synchronous or asynchronous hooks? > > > > > > If this is done, I would them them done in separate PRs. In addition, > > > please write the man pages first. > > > > > > On Tue, Dec 11, 2018 at 11:26 AM Fei Deng <duke8...@apache.org> wrote: > > > > > > > There are two new lifecycle hooks I'd like to add to the list: > > > > > > > > - TS_LIFECYCLE_TASK_THREADS_READY_HOOK > > > > - TS_LIFECYCLE_SHUTDOWN_HOOK > > > > > > > > TS_LIFECYCLE_TASK_THREADS_READY_HOOK is needed for the new > > > > TSContScheduleOnXXXX APIs. I don't think there is any way of telling > > > > whether the ET_TASK threads are ready or not. > > > > TS_LIFECYCLE_SHUTDOWN_HOOK is needed for signaling plugins that > traffic > > > > server is shutting down, and should start cleaning up and shutdown > > > itself. > > > > This will help with the openssl related crash on shutdown issue. > > > > > > > > > > > > > -- > > > *Beware the fisherman who's casting out his line in to a dried up > > > riverbed.* > > > *Oh don't try to tell him 'cause he won't believe. Throw some bread to > > the > > > ducks instead.* > > > *It's easier that way. *- Genesis : Duke : VI 25-28 > > > > > > > > > -- > > *Fei Deng* > > > > E: f...@oath.com > > > > 1908 S First Street > > Champaign, IL, 61820 > > > -- *Beware the fisherman who's casting out his line in to a dried up riverbed.* *Oh don't try to tell him 'cause he won't believe. Throw some bread to the ducks instead.* *It's easier that way. *- Genesis : Duke : VI 25-28