>
> I had an issue with the Lua plugin where the first request would work
> great, but the second would result in 'bad gateway' errors from nginx.
>
> At first thought this was an Orbit problem, but it turns out a line of
> code commented as 'performance hack' was actually messing up data
> inside the Lua state.
>
> Patch is attached. It's very simple, and maybe not the best fix. But,
> it makes uWSGI + Lua Orbit stable without a noticable performance hit:
> 5000+ hits from httperf with only "200 OK" responses.
>


I have rewritten the status/headers management part, using the new
uwsgi_buffer structure.

The new code should be more readable and (more important) extremely faster

Let me know if it works for you:

https://github.com/unbit/uwsgi/blob/master/plugins/lua/lua_plugin.c#L471

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to