Hi Fabio,
On Thu, Aug 26, 2010 at 4:26 PM, Fabio Mascarenhas <[email protected]>wrote:
> Hi, Ryan,
>
> Sorry it took so long to answer, I have been investigating this issue,
> and it is not a WSAPI problem, as I can reproduce it with this minimal
> script:
>
No problem at all. Thanks for taking the time.
> ----
> #!/usr/bin/lua
>
> require "lfcgi"
>
> while lfcgi.accept() >= 0 do
> lfcgi.stdout:write("Status: 200 Ok\r\n")
> lfcgi.stdout:write("Content-Type: text/html\r\n\r\n")
> lfcgi.stdout:write("<html><body>Loading...</body></html>\r\n")
> --lfcgi.stdout:flush()
> os.execute("sleep 5")
> lfcgi.stdout:write('<script language="JavaScript">alert("foo");</script>')
> end
> ---
>
> I have tested both mod_fastcgi and mod_fcgid, and they have the same
> behavior. Commenting out the call to flush also does nothing... the
> FastCGI client library must be doing its own buffering, and ignoring
> flush attempts (the lfcgi module just calls fflush and write on the
> file handle that the FastCGI library gives it...).
>
Do you think mod_fcgid was updated and broke this? It used to work.
What version of Ubuntu did you try? I have the ability to upgrade to Ubuntu
v10.04 if that would help.
Sorry for the bad news...
>
Is there another way to give interactive feedback to the user? This is a
requirement that I have for the project and without it I am not sure what to
do.
Thanks for your help. I really appreciate it.
--
Regards,
Ryan
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/