Skip to content
This repository

Better way to disable Zombie timer at mojit level #1091

Open
luchenghan opened this Issue · 3 comments

3 participants

Steven Lu Caridy Patino ooskapenaar
Steven Lu

It may come to a situation where the developers want to handle the http response by themselves, and calling actionContext.done will be a problem.
Per discussion with Caridy, currently there is no good way to disable the zombie detection in mojit level except for hacking action context. Maybe this can be done in a cleaner api call.

Please help label this as an "enhancement"

Thanks,
Steven

Caridy Patino
Owner
caridy commented

Though: "The enhancement here is really about been able to call ac.done with a noop signal when the output has been sent thru another channel."

Caridy Patino
Owner
caridy commented

Workaround to signal the end of the process:

clearTimeout(ac._timer);
ooskapenaar

+1

Jbtw: That workaround does not seem to work in arbitrary child controllers 0.5.x, 0.7.1 (i.e. all our controllers are under HTMLFrameMojit, and there this call does not help, working with clones, or something?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.