[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Technical question wrt lua_pcall() and errors
- From: Marc Balmer <marc@...>
- Date: Tue, 18 Jan 2011 13:18:40 +0100
Am 18.01.11 13:16, schrieb Drake Wilson:
> Quoth Marc Balmer <email@example.com>, on 2011-01-18 13:06:47 +0100:
>> And what is very strange, in the firs iteration all output to the
>> webserver seems lost, only the second one succeds...
>> this is mysterious...
> Incidentally, I see from the FCGI docs that they wrap the stdio
> functions using the C preprocessor. That's not going to do any good
> for a Lua program that invokes the core Lua stdio bindings somewhere
> else; the preprocessor definitions were never (and often cannot be)
> applied in that context.
> So you'd have to rebind the input and output functions yourself and
> expose them as new functions in the Lua namespace.
> Isn't there a stock FastCGI Lua binding somewhere?
The Lua code does not do any output, it's the C code that does.