[MTOS-dev] Background Task Change
Reed A. Cartwright
reed at scit.us
Sun Feb 10 11:29:49 PST 2008
Timothy Appnel wrote:
>
> I believe that is what the takedown callback hook is for.
I just looked at the code, and MT::App::takedown does not actually
finish the connection before calling the callbacks. What I mean by
'finish' is that the cgi has disconnected the user. For CGI::Fast code
this is done via a call to '$CGI::Fast::Ext_Request->Finish()' and for
normal cgi code, I suspect that 'close STDOUT; close STDIN;' would work.
The advantage of Finishing the connection is that the user does not have
to wait for the appendix tasks to finish before their browser tells them
that it is done.
--
*********************************************************
Reed A. Cartwright, PhD http://scit.us/
Postdoctoral Researcher http://www.dererumnatura.us/
Department of Genetics http://www.pandasthumb.org/
Bioinformatics Research Center
North Carolina State University
Campus Box 7566
Raleigh, NC 27695-7566
Cuiusvis hominis est errare, nullius nisi
insipientis in errore perserverare. --Cicero
More information about the MTOS-dev
mailing list